Set referencesSet = new HashSet();
Set dependencySet = new HashSet();
// add the references
Map dataReferences = gbeanData.getReferences();
for (Iterator iterator = gbeanInfo.getReferences().iterator(); iterator.hasNext();) {
GReferenceInfo referenceInfo = (GReferenceInfo) iterator.next();
String referenceName = referenceInfo.getName();
ReferencePatterns referencePatterns = (ReferencePatterns) dataReferences.remove(referenceName);
if (referenceInfo.getProxyType().equals(Collection.class.getName())) {
referencesSet.add(new GBeanCollectionReference(this, referenceInfo, kernel, referencePatterns));
} else {
referencesSet.add(new GBeanSingleReference(this, referenceInfo, kernel, referencePatterns));
if (referencePatterns != null) {