return false;
}
String j2eeApplication = appDesc.getRegistrationName();
// get the Bundle Descriptor
WebBundleDescriptor wbd = (WebBundleDescriptor)descriptor;
String moduleName = wbd.getModuleDescriptor().getArchiveUri();
StringBuffer dir = new StringBuffer(location);
dir.append(File.separator);
dir.append(FileUtils.makeFriendlyFilename(moduleName));
if (!(new File(dir.toString()).exists())) {
dir = new StringBuffer(location).append(
File.separator).append(moduleName);
}
// set the values in the ExtensionModule config bean
em = new com.sun.enterprise.config.serverbeans.ExtensionModule();
em.setLocation(dir.toString().trim());
em.setConfigContext(eventConfigContext);
em.setName(moduleName);
ElementProperty isConvergedProperty = new ElementProperty();
isConvergedProperty.setName("isConverged");
if(wbd.getContextRoot() != null) {
isConvergedProperty.setValue("true");
ElementProperty contextRootProperty = new ElementProperty();
contextRootProperty.setName("contextRoot");
contextRootProperty.setValue(wbd.getContextRoot());
em.addElementProperty(contextRootProperty);
} else {
isConvergedProperty.setValue("false");
}
em.addElementProperty(isConvergedProperty);