{
if ((data instanceof DeploymentInfo) == false)
return null;
DeploymentInfo di = (DeploymentInfo) data;
ConnectorMetaData metaData = (ConnectorMetaData) di.metaData;
// Create the ResourceAdapterModule
String rarName = di.shortName;
ObjectName rarService = di.deployedObject;
ObjectName jsr77ModuleName = ResourceAdapterModule.create(mbeanServer,
FactoryUtils.findEarParent(di),
rarName,
di.localUrl);
deploymentToModuleNameMap.put(di, jsr77ModuleName);
log.debug("Created module: " + jsr77ModuleName);
// Create the ResourceAdapter
ObjectName jsr77RAName = ResourceAdapter.create(mbeanServer,
metaData.getDescription().getDisplayName(), jsr77ModuleName, rarService);
// Register a mapping from the RARDeployment service to the ResourceAdapter
moduleServiceToMgmtMap.put(rarService, jsr77RAName);
return jsr77ModuleName;
}