} catch (IOException e) {
logger.warning("Unable to determine URLs in web application " + basePath, e);
}
// create the app module
ClassLoader appClassLoader = new TemporaryClassLoader(classLoader);
AppModule appModule = new AppModule(appClassLoader, basePath);
// add the web module itself
WebModule webModule = new WebModule(webApp, servletContext.getContextPath(), classLoader, basePath, getId(standardContext));
appModule.getWebModules().add(webModule);