code: function createPublisher(broker, configurator) {
      var params = getParams(PublisherConfiguration, configurator);
      return Publisher(broker, params.envelope, params.pipeline, params.routeName, params.routePattern, params.logger);
    }
docs: Creates a new {@link Publisher}
  
  @param {Broker} broker
  @param {publisherConfigFunction} configurator - function to customize publisher configuration (optional)
  @returns {Publisher} a publisher