}
resourceReference.setAuthorization(resources[i].getAuth());
((WebBundleDescriptor)webBundleDescriptor).addResourceReference(resourceReference);
}
Switch sw = Switch.getSwitch();
sw.getNamingManager().bindObjects((WebBundleDescriptor)webBundleDescriptor);
sw.setDescriptorFor(context, (WebBundleDescriptor)webBundleDescriptor);
} catch (Exception exception) {
context.setAvailable(false);
String msg = _rb.getString("webcontainer.webModuleDisabled");
msg = MessageFormat.format(msg,