orgCollection = schedule.getMatchingRelationships(cinc.getConverse(), TimeSpan.MIN_VALUE, TimeSpan.MAX_VALUE); if (orgCollection.size() > 0) { for (Iterator relIterator = orgCollection.iterator(); relIterator.hasNext();) { Relationship relationship = (Relationship) relIterator.next(); HasRelationships sub = schedule.getOther(relationship);  if (!subs.contains(sub)) { subs.add(sub); } } }
  public static Collection retrieveSubOrgs(Collection orgs) {    HashSet subs = new HashSet(3);    Iterator iterator = orgs.iterator();    while (iterator.hasNext()) {      Organization org = (Organization)iterator.next();      if (org.isSelf()) {        RelationshipSchedule schedule = org.getRelationshipSchedule();        Collection orgCollection = org.getSubordinates(TimeSpan.MIN_VALUE,                                                       TimeSpan.MAX_VALUE);        if (orgCollection.size() > 0) {          for (Iterator relIterator = orgCollection.iterator();               relIterator.hasNext();) {            Relationship relationship = (Relationship) relIterator.next();            HasRelationships sub = schedule.getOther(relationship);                        if (!subs.contains(sub)) {              subs.add(sub);            }          }        }              /** BOZO - how would this relationship ever get created?          **/        orgCollection =           schedule.getMatchingRelationships(cinc.getConverse(),                                            TimeSpan.MIN_VALUE,                                            TimeSpan.MAX_VALUE);        if (orgCollection.size() > 0) {          for (Iterator relIterator = orgCollection.iterator();               relIterator.hasNext();) {            Relationship relationship = (Relationship) relIterator.next();            HasRelationships sub = schedule.getOther(relationship);                        if (!subs.contains(sub)) {              subs.add(sub);            }          }        }      }     }    return subs;  }