SessionFactoryServiceRegistry buildServiceRegistry(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions)Create the registry.
sessionFactory- The (still being built) session factory. Generally this is useful for grabbing a reference for later use. However, care should be taken when invoking on the session factory until after it has been fully initialized.
sessionFactoryOptions- The build options.
- The registry