final String webInfDir = servletContext.getRealPath("/WEB-INF");
loggingConfigurer.configureLogging(webInfDir, new String[0]);
// will load either from WEB-INF or from the classpath.
final IsisConfigurationBuilder isisConfigurationBuilder =
new IsisConfigurationBuilderResourceStreams(new ResourceStreamSourceForWebInf(servletContext),
new ResourceStreamSourceContextLoaderClassPath());
primeConfigurationBuilder(isisConfigurationBuilder, servletContext);
final DeploymentType deploymentType = determineDeploymentType(isisConfigurationBuilder, servletContext);
addConfigurationResourcesForWebApps(isisConfigurationBuilder);
addConfigurationResourcesForDeploymentType(isisConfigurationBuilder, deploymentType);
addConfigurationResourcesForViewers(isisConfigurationBuilder, servletContext);
isisConfigurationBuilder.add(WebAppConstants.WEB_APP_DIR, webappDir);
isisConfigurationBuilder.add(SystemConstants.NOSPLASH_KEY, "true");
final InstallerLookup installerLookup = new InstallerLookupDefault();
injector = createGuiceInjector(isisConfigurationBuilder, deploymentType, installerLookup);