TimeSpanSet orgActivities = getMergedOrgActivities(orgInfo);
  public void endQuery() {    // myOrgInfoMap has a TimeSpanSet for each Org    Collection orgInfosByOrg = myOrgInfoMap.values();        ArrayList allOrgActivities = new ArrayList(orgInfosByOrg.size());    for (Iterator iterator = orgInfosByOrg.iterator();         iterator.hasNext();) {      OrgInfo orgInfo = (OrgInfo) iterator.next();      if (needToUpdate(orgInfo)) {        TimeSpanSet orgActivities = getMergedOrgActivities(orgInfo);        /* Debugging  */        /*        for (Iterator oaIterator = orgActivities.iterator();             oaIterator.hasNext();) {          OrgActivity orgActivity = (OrgActivity)oaIterator.next();          System.out.println(orgActivity.getOrgID() + " " +                              orgActivity.getOpTempo() + " " +                              orgActivity.getActivityType() + " " +                              orgActivity.getTimeSpan().getStartDate() + " " +                             orgActivity.getTimeSpan().getEndDate() + " " +                              orgActivity.getGeoLoc());        }        */                myPlugIn.updateOrgActivities(myOplan, orgInfo.getOrgName(),                                      orgActivities);      }    }    myLastQueryTime = new Date().getTime();  }