create service registry for hibernate 4.0 and hibernate 4.3