updated HibernateUtil.java to remoce depricated method