private void registerHibernateSearchEventListener(FullTextIndexEventListener eventListener, SessionFactoryServiceRegistry serviceRegistry) {
EventListenerRegistry listenerRegistry = serviceRegistry.getService( EventListenerRegistry.class );
listenerRegistry.addDuplicationStrategy( new DuplicationStrategyImpl( FullTextIndexEventListener.class ) );
listenerRegistry.appendListeners( EventType.POST_INSERT, eventListener );
listenerRegistry.appendListeners( EventType.POST_UPDATE, eventListener );
listenerRegistry.appendListeners( EventType.POST_DELETE, eventListener );
listenerRegistry.appendListeners( EventType.POST_COLLECTION_RECREATE, eventListener );
listenerRegistry.appendListeners( EventType.POST_COLLECTION_REMOVE, eventListener );
listenerRegistry.appendListeners( EventType.POST_COLLECTION_UPDATE, eventListener );
listenerRegistry.appendListeners( EventType.FLUSH, eventListener );