}
try {
WebBundleDescriptor wbd = null;
if( configBean instanceof WebModule ) {
WebModulesManager webModulesManager = new WebModulesManager(
ApplicationServer.getServerContext().getInstanceEnvironment());
Application app = webModulesManager.getDescriptor(wmID, location);
wbd = (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
} else if ( configBean instanceof ExtensionModule) {
ModuleType mType = XModuleType.getModuleType(
((ExtensionModule)configBean).getModuleType());
ExtensionModuleConfigManager extnModulesManager =