data.addRelationship(metricRelate);
data.getAgentAssetData().addRelationship(metricRelate);
  private void addRelationship(AgentComponentData data) {    if (metricRelate == null)       return;    // Only add the relationship if its not already there    RelationshipData[] relats = data.getRelationshipData();    for (int i = 0; i < relats.length; i++) {      if (relats[i].equals(metricRelate))	return;    }    data.addRelationship(metricRelate);  }