code: public <T> void addEvent(Class<T> eventType, PublisherConfiguration configuration) {
          publisherConfigurations.put(eventType, configuration);
      }
docs: Adds events of the given type to the CDI events to which the event publisher listens in order to
  publish them. The publisher configuration is used to decide where to and how to publish messages.
  
  @param eventType The event type
  @param configuration The configuration used when publishing and event
  @param <T> The event type