Settings settings,
EventListeners listeners,
SessionFactoryObserver observer) throws HibernateException {
log.info("building session factory");
this.statistics = new ConcurrentStatisticsImpl( this );
getStatistics().setStatisticsEnabled( settings.isStatisticsEnabled() );
log.debug( "Statistics initialized [enabled={}]}", settings.isStatisticsEnabled() );
this.properties = new Properties();
this.properties.putAll( cfg.getProperties() );