}
}
protected Configuration load(ConfigurationData configurationData, LinkedHashSet resolvedParentIds, Map loadedConfigurations) throws InvalidConfigException {
Artifact configurationId = configurationData.getId();
AbstractName configurationName = Configuration.getConfigurationAbstractName(configurationId);
GBeanData gbeanData = new GBeanData(configurationName, Configuration.GBEAN_INFO);
gbeanData.setAttribute("configurationData", configurationData);
gbeanData.setAttribute("configurationResolver", new ConfigurationResolver(configurationData, repositories, getArtifactResolver()));
//TODO is this dangerous?
gbeanData.setAttribute("managedAttributeStore", attributeStore);
// add parents to the parents reference collection
LinkedHashSet parentNames = new LinkedHashSet();
for (Iterator iterator = resolvedParentIds.iterator(); iterator.hasNext();) {
Artifact resolvedParentId = (Artifact) iterator.next();
AbstractName parentName = Configuration.getConfigurationAbstractName(resolvedParentId);
parentNames.add(parentName);
}
gbeanData.addDependencies(parentNames);
gbeanData.setReferencePatterns("Parents", parentNames);