// Check if the default-web-module is part of a
// j2ee-application
Applications appsBean = domain.getApplications();
wmInfo = findWebModuleInJ2eeApp(appsBean, wmID, appRegistry);
if (wmInfo == null) {
ConfigBeansUtilities cbu = getConfigBeansUtilities();
String contextRoot = null;
String location = null;
if (cbu != null) {
contextRoot = cbu.getContextRoot(wmID);
location = cbu.getLocation(wmID);
}
if (contextRoot!=null && location != null) {
File docroot = new File(location);
WebBundleDescriptorImpl wbd = webArchivist.getDefaultWebXmlBundleDescriptor();