final DomainObjectContainer container = obtainContainer();
final List<Object> services = obtainServices();
// bind metamodel to the (runtime) framework
final RuntimeContextFromSession runtimeContext = obtainRuntimeContextFromSession();
runtimeContext.injectInto(reflector);
return newIsisSessionFactory(deploymentType, userProfileLoader, persistenceSessionFactory, configuration, authenticationManager, authorizationManager, templateImageLoader, oidMarshaller, reflector, container, services);
}