Map servletNameToPathMap = buildServletNameToPathMap(webApp, contextRoot);
Map sharedContext = new HashMap();
for (Iterator iterator = webServiceBuilder.iterator(); iterator.hasNext();) {
WebServiceBuilder serviceBuilder = (WebServiceBuilder) iterator.next();
serviceBuilder.findWebServices(moduleFile, false, servletNameToPathMap, environment, sharedContext);
}
AbstractName moduleName;
if (earName == null) {
earName = naming.createRootName(environment.getConfigId(), NameFactory.NULL, NameFactory.J2EE_APPLICATION);
moduleName = naming.createChildName(earName, environment.getConfigId().toString(), NameFactory.WEB_MODULE);