hibernate ServiceRegistry
http://docs.jboss.org/hibernate/orm/4.0/devguide/en-US/html/ch07.html#d0e3232
http://planet.jboss.org/post/hibernate_orm_service_registry
ServiceRegistry:
The central service API, aside from the services themselves, is the org.hibernate.service.ServiceRegistry
interface. The main purpose of a service registry is to hold, manage and provide access to services.
Service registries are hierarchical. Services in one registry can depend on and utilize services in that same registry as well as any parent registries.
Use org.hibernate.service.ServiceRegistryBuilder
to build a org.hibernate.service.ServiceRegistry
instance.