. resolved the deprecated way to get the hibernate sessionFactory to match Hibernate 4.0