sessionFactoryBean.getEventListeners().setPostDeleteEventListeners(new PostDeleteEventListener[]{selectingListener});
sessionFactoryBean.getEventListeners().setPostUpdateEventListeners(new PostUpdateEventListener[]{selectingListener});
sessionFactoryBean.getEventListeners().setPostInsertEventListeners(new PostInsertEventListener[]{selectingListener});
AuditingPostPersistenceEventListener listener = (AuditingPostPersistenceEventListener) context.getBean("auditLoggingPostPersistenceEventListener");
SessionContextProvider provider = (SessionContextProvider) context.getBean("webSessionPersistenceContextProvider");
listener.setSessionContextProvider(provider);
}