TRUNK-4140 Substitute deprecated method call in HibernateContextDAO

See https://tickets.openmrs.org/browse/TRUNK-4140