wrapHandler(method, handler, def) {
		if (this.registeredHooks[method] && this.registeredHooks[method].length) {
			handler = this.registeredHooks[method].reduce((handler, fn) => {
				return fn.call(this.broker, handler, def);
			}, handler);
		}

		return handler;
	}
Wrap a handler

@param {string} method
@param {Function} handler
@param {Object} def
@returns {Function}
@memberof MiddlewareHandler