Added utility class session factory for Hibernate.