private OgmSession buildOgmSession(Session session) {
final SessionFactory sessionFactory = ( (HibernateEntityManagerFactory) hibernateEm.getEntityManagerFactory() )
.getSessionFactory();
final OgmSessionFactory ogmSessionFactory = new OgmSessionFactoryImpl( (SessionFactoryImplementor) sessionFactory );
return new OgmSessionImpl( ogmSessionFactory, (EventSource) session );
}