Benalib port to Hibernate 4.