Collection existingOrgActivities = query(orgActivityPredicate);
Collection existingOrgActivities = blackboard.query(orgActivityPredicate);
  public void updateOrgActivities(Oplan update,                                  String orgId,                                  Collection orgActivities) {    synchronized (oplans) {      String oplanID = update.getOplanId();      Oplan oplan = getOplan(oplanID);            if (oplan == null) {        System.err.println("SQLOplanPlugIn.updateOrgActivities(): can't find" +                           " referenced Oplan " + oplanID);        return;      }            // Execute a query to get all existing org activities associated with      // the oplan      orgActivityPredicate.setOplan(oplan);      orgActivityPredicate.setOrgId(orgId);      Collection existingOrgActivities = query(orgActivityPredicate);      for (Iterator iterator = existingOrgActivities.iterator();           iterator.hasNext();) {        OrgActivity orgActivity = (OrgActivity) iterator.next();                if (orgActivity.getOrgID().equals(orgId)) {          removedObjects.add(orgActivity);        }      }      for (Iterator iterator = orgActivities.iterator();           iterator.hasNext();) {        OrgActivity orgActivity = (OrgActivity) iterator.next();        newObjects.add(orgActivity);      }      if (myPrivateState != null) {        myPrivateState.unpublishedChanges = true;      }    }  }