if (resources == null) {
throw new IllegalStateException("JNDI environment was not set up correctly due to previous error");
}
DirContextURLStreamHandler.bind(classLoader, resources);
if (context instanceof StandardContext)
statsProvider = new ModuleStats((StandardContext)context);
log.debug("TomcatWebAppContext started for " + path);
}