if (tomcatWebAppContext.getSecurityHolder() != null) {
configurationFactory = tomcatWebAppContext.getSecurityHolder().getConfigurationFactory();
}
float schemaVersion = (Float) tomcatWebAppContext.getDeploymentAttribute(WebApplicationConstants.SCHEMA_VERSION);
boolean metaComplete = (Boolean) tomcatWebAppContext.getDeploymentAttribute(WebApplicationConstants.META_COMPLETE);
webSecurityConstraintStore = new WebSecurityConstraintStore(tomcatWebAppContext.getWebAppInfo(), bundle, schemaVersion >= 2.5f && !metaComplete, getInternalServletContext());
servletContext.setAttribute(InstanceManager.class.getName(), ctx.getInstanceManager());
//Set some attributes passed from the deployment process
List<String> orderedLists = (List<String>) tomcatWebAppContext.getDeploymentAttribute(WebApplicationConstants.ORDERED_LIBS);
if (orderedLists != null) {
servletContext.setAttribute(ServletContext.ORDERED_LIBS, Collections.unmodifiableList(orderedLists));