final SpecificationLoaderSpi reflector = obtainSpecificationLoaderSpi(deploymentType, persistenceSessionFactory, metaModelRefiners);
final List<Object> servicesList = obtainServices();
// bind metamodel to the (runtime) framework
RuntimeContextFromSession runtimeContext = new RuntimeContextFromSession();
runtimeContext.injectInto(reflector);
return new IsisSessionFactoryDefault(deploymentType, configuration, templateImageLoader, reflector, authenticationManager, authorizationManager, userProfileLoader, persistenceSessionFactory, servicesList, oidMarshaller);
}