rData.setTypeId((String)rel.getProperty(RelationshipBase.PROP_TYPEID).getValue());
  public ComponentData addComponentData(ComponentData data) {    AgentAssetData assetData = new AgentAssetData((AgentComponentData)data);    assetData.setType(((Integer)propAssetType.getValue()).intValue());    assetData.setAssetClass((String)propAssetClass.getValue());    assetData.setUniqueID((String)propUniqueID.getValue());    assetData.setUnitName((String)propUnitName.getValue());    assetData.setUIC((String)propUIC.getValue());    // Add Relationships.    Iterator iter =       ((Collection)getDescendentsOfClass(ContainerBase.class)).iterator();    while(iter.hasNext()) {      ContainerBase container = (ContainerBase)iter.next();      if(container.getShortName().equals("Relationships")) {        for(int i=0; i < container.getChildCount(); i++) {          RelationshipBase rel = (RelationshipBase) container.getChild(i);          RelationshipData rData = new RelationshipData();          rData.setType((String)rel.getProperty(PROP_TYPE).getValue());          rData.setRole((String)rel.getProperty(RelationshipBase.PROP_ROLE).getValue());          rData.setItem((String)rel.getProperty(RelationshipBase.PROP_ITEM).getValue());          assetData.addRelationship(rData);        }      }    }    // Add Property Groups.    iter =       ((Collection)getDescendentsOfClass(ContainerBase.class)).iterator();    while(iter.hasNext()) {      ContainerBase container = (ContainerBase)iter.next();      if(container.getShortName().equals("Property Groups")) {        for(int i=0; i < container.getChildCount(); i++) {          PropGroupComponent pg = (PropGroupComponent)container.getChild(i);          assetData.addPropertyGroup(pg.getPropGroupData());        }      }    }    data.addAgentAssetData(assetData);    return data;  }