Fix HibernateUtil, changed API for ServiceRegistry