Refactor HibernateUtil.java