registerActions(node, service, actions) {
		_.forIn(actions, action => {
			if (!this.checkActionVisibility(action, node)) return;

			// Clone fields to have independent action object
			const serviceAction = { ...action };

			if (node.local) {
				serviceAction.handler = this.broker.middlewares.wrapHandler(
					"localAction",
					action.handler,
					action
				);
			} else if (this.broker.transit) {
				serviceAction.handler = this.broker.middlewares.wrapHandler(
					"remoteAction",
					this.broker.transit.request.bind(this.broker.transit),
					{ ...action, service }
				);
			}
			if (this.broker.options.disableBalancer && this.broker.transit)
				serviceAction.remoteHandler = this.broker.middlewares.wrapHandler(
					"remoteAction",
					this.broker.transit.request.bind(this.broker.transit),
					{ ...action, service }
				);

			this.actions.add(node, service, serviceAction);
			service.addAction(serviceAction);
		});
	}
Register service actions

@param {Node} node
@param {Service} service
@param {Object} actions
@memberof Registry