@Override
public void sessionFactoryCreated(SessionFactory factory) {
SessionFactoryImplementor factoryImplementor = (SessionFactoryImplementor) factory;
GridDialect gridDialect = factoryImplementor.getServiceRegistry().getService( GridDialect.class );
SessionFactoryLifecycleAwareDialect sessionFactoryAwareDialect = GridDialects.getDialectFacetOrNull( gridDialect, SessionFactoryLifecycleAwareDialect.class );
if ( sessionFactoryAwareDialect != null ) {
sessionFactoryAwareDialect.sessionFactoryCreated( factoryImplementor );
}
}