if (log.isDebugEnabled()) { for (int i = 0; i < relContainer.getChildCount(); i++) { RelationshipBase relt = (RelationshipBase) relContainer.getChild(i); if (relt == null) { if (log.isErrorEnabled()) { log.error("Please report seeing Bug 1304: Using CSMART " + CSMART.writeDebug() + " had Null RelationshipBase at child spot # " + i + " out of " + relContainer.getChildCount() + " where the corresponding RelationshipData should have been: " + rel[i], new Throwable()); } } else if (relt.getProperty(RelationshipBase.PROP_TYPE) == null) { if (log.isErrorEnabled()) { log.error("Please report seeing Bug 1304: Using CSMART " + CSMART.writeDebug() + " had Null Relationship type for relationship at child spot #" + i + " out of " + relContainer.getChildCount() + " where relationship role=" + relt.getProperty(RelationshipBase.PROP_ROLE) + ", and ItemID=" + relt.getProperty(RelationshipBase.PROP_ITEM) + ", and supported=" + relt.getProperty(RelationshipBase.PROP_SUPPORTED) + ", where the corresponding RelationshipData should have been " + rel[i], new Throwable()); } } } }
  private void addRelationships(RelationshipData[] rel) {    ContainerBase relContainer = new ContainerBase("Relationships");    relContainer.initProperties();    addChild(relContainer);    for(int i=0; i < rel.length; i++) {      RelationshipBase newR = new RelationshipBase(rel[i]);      newR.initProperties();      relContainer.addChild(newR);    }  }