public static void synchronizeAmbariEventPublisher(Binder binder) {
    EventBus synchronizedBus = new EventBus();
    AmbariEventPublisher ambariEventPublisher = new AmbariEventPublisher();

    replaceEventBus(AmbariEventPublisher.class, ambariEventPublisher,
        synchronizedBus);

    binder.bind(AmbariEventPublisher.class).toInstance(ambariEventPublisher);
  }
Force the {@link EventBus} from {@link AmbariEventPublisher} to be serial
and synchronous.

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