Changed HibernateUtil.java file.

http://stackoverflow.com/questions/8621906/is-buildsessionfactory-deprecated-in-hibernate-4