code: function (type, handler) {
          var handlers = this.handlers();
          if (handlers[type]) {
              throw new Error('The hook has already been registered, you can use only one hook for specific event type: ' + type + ', point.id:' + this._id);
          }
          handlers[type] = handler;
          this._handlersConfigured = true;
          return this;
      }
docs: /*
  Message handlers will be attached to specific context and mapped to a specific point by its _id
  This is need to avoid re-creating pipe for every new context