This method is very general and doesn't use any properties specific to the User entity. We can reuse it for other entities, so move it to GenericHibernateManager.