while (ports_enum.hasMoreElements()) { Organization org = (Organization)ports_enum.nextElement();
while (ports_en.hasMoreElements()) { Organization org = (Organization)ports_en.nextElement();
  public Organization findPortOrg(GeolocLocation loc,                                          Enumeration ports_enum,                                         String myClusterName) {    Set ports = new HashSet();    while (ports_enum.hasMoreElements()) {      Organization org = (Organization)ports_enum.nextElement();      RelationshipSchedule sched = org.getRelationshipSchedule();            Collection portRelationships;            //BOZO - Should be looking at self org for providers. Don't have self org so       //will look to see if org has any port customers.      if (!((portRelationships = 	     sched.getMatchingRelationships(GLMConst.THEATER_SEA_PROVIDER.getConverse(),					    TimeSpan.MIN_VALUE,					    TimeSpan.MAX_VALUE)).isEmpty()) ||          !((portRelationships = 	     sched.getMatchingRelationships(GLMConst.GENERIC_SEA_PORT.getConverse(),					    TimeSpan.MIN_VALUE,					    TimeSpan.MAX_VALUE)).isEmpty()) ||          !((portRelationships = 	     sched.getMatchingRelationships(GLMConst.AMMUNITION_SEA_PORT.getConverse(),					    TimeSpan.MIN_VALUE,					    TimeSpan.MAX_VALUE)).isEmpty())) {        for (Iterator iterator = portRelationships.iterator();             iterator.hasNext();) {          Relationship relationship = (Relationship) iterator.next();          ports.add(sched.getOther(relationship));        }      }    }        Organization foundOrg = measureHelper.bestOrg(loc, ports, myClusterName);    return foundOrg;  }