code: public static EventPublisher newInstance(EventListenerResolver eventListenerResolver) {
          List<? extends EventListener<? extends Event>> eventListeners = eventListenerResolver != null ?
                  eventListenerResolver.resolveListeners() : null;
          return eventListeners != null && !eventListeners.isEmpty() ?
                  new EventPublisher(eventListeners) :
                  new EventPublisher();
      }
docs: Create a new {@link EventPublisher} instance using the current configured listeners
  
  @param eventListenerResolver event listener resolver
  @return {@link EventPublisher}