TRUNK-4140: Substitute deprecated method call in HibernateContextDAO