Application app = webModulesManager.getDescriptor(wmID, location);
wbd = (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
} else if ( configBean instanceof ExtensionModule) {
ModuleType mType = XModuleType.getModuleType(
((ExtensionModule)configBean).getModuleType());
ExtensionModuleConfigManager extnModulesManager =
PluggableDeploymentInfo.getExtensionModuleDeployer(
mType).getConfigManager();
Application app =
extnModulesManager.getExtensionDescriptor(wmID,
location, true);
// if an app has to be loaded into the web container then it
// should extend the WebBundleDescriptor
if(app.getStandaloneBundleDescriptor()
instanceof WebBundleDescriptor) {