moduleContext.addGBean(contextSourceData);
} catch (GBeanAlreadyExistsException e) {
throw new DeploymentException("ContextSource for this webapp already present:" + webModuleData.getAbstractName(), e);
}
webModuleData.setReferencePattern("ContextSource", contextSourceName);
Holder holder = NamingBuilder.INJECTION_KEY.get(buildingContext);
webModule.getSharedContext().put(WebModule.WEB_APP_DATA, webModuleData);
webModule.getSharedContext().put(NamingBuilder.JNDI_KEY, jndiContext);
webModule.getSharedContext().put(NamingBuilder.INJECTION_KEY, holder);
if (moduleContext.getServerName() != null) {
webModuleData.setReferencePattern("J2EEServer", moduleContext.getServerName());