public static EventBus synchronizeAmbariEventPublisher(Injector injector) {
    EventBus synchronizedBus = new EventBus();
    AmbariEventPublisher publisher = injector.getInstance(AmbariEventPublisher.class);

    replaceEventBus(AmbariEventPublisher.class, publisher, synchronizedBus);

    // register common ambari event listeners
    registerAmbariListeners(injector, synchronizedBus);

    return synchronizedBus;
  }
Force the {@link EventBus} from {@link AlertEventPublisher} to be serial
and synchronous. Also register the known listeners. Registering known
listeners is necessary since the event bus was replaced.

@param injector
ambari-server/src/main/java/org/apache/ambari/server/utils/EventBusSynchronizer.java