reflector.setRuntimeContext(new RuntimeContextFromSession());
reflector.init();
// not sure if this is needed since we have now moved Reflector out to global scope,
// not specific to an ExecutionContext.
final IsisSessionFactory executionContextFactory =
new IsisSessionFactoryDefault(DeploymentType.EXPLORATION, configuration, mockTemplateImageLoader,
reflector, mockAuthenticationManager, mockAuthorizationManager, mockUserProfileLoader,
mockPersistenceSessionFactory, servicesList);
IsisContextStatic.createRelaxedInstance(executionContextFactory);
IsisContextStatic.getInstance().getSessionInstance(); // cause an Execution Context to load