Adding support for hibernate-entitymanager and persistance.xml