private Map getManagedConnectionFactoryInfoMap(AbstractName validatorName, List<ConnectionDefinition> connectionDefinitions, Bundle bundle) throws DeploymentException {
Map<String, GBeanData> managedConnectionFactoryInfos = new HashMap<String, GBeanData>();
for (ConnectionDefinition connectionDefinition : connectionDefinitions) {
GBeanInfoBuilder managedConnectionFactoryInfoBuilder = new GBeanInfoBuilder(ManagedConnectionFactoryWrapper.class, ManagedConnectionFactoryWrapperGBean.GBEAN_INFO);
String managedConnectionfactoryClassName = connectionDefinition.getManagedConnectionFactoryClass();
Set<String> ignore = new HashSet<String>();
ignore.add("ResourceAdapter");
ignore.add("LogWriter");
GBeanData managedConnectionFactoryGBeanData = setUpDynamicGBeanWithProperties(managedConnectionfactoryClassName, managedConnectionFactoryInfoBuilder, connectionDefinition.getConfigProperty(), bundle, ignore);
String connectionfactoryInterface = connectionDefinition.getConnectionFactoryInterface();
managedConnectionFactoryGBeanData.setAttribute("managedConnectionFactoryClass", managedConnectionfactoryClassName);
managedConnectionFactoryGBeanData.setAttribute("connectionFactoryInterface", connectionfactoryInterface);
managedConnectionFactoryGBeanData.setAttribute("connectionFactoryImplClass", connectionDefinition.getConnectionFactoryImplClass());
managedConnectionFactoryGBeanData.setAttribute("connectionInterface", connectionDefinition.getConnectionInterface());
managedConnectionFactoryGBeanData.setAttribute("connectionImplClass", connectionDefinition.getConnectionImplClass());
managedConnectionFactoryGBeanData.setReferencePattern("ValidatorFactory", validatorName);
managedConnectionFactoryInfos.put(connectionfactoryInterface, managedConnectionFactoryGBeanData);
}
return managedConnectionFactoryInfos;
}