oplan.setOrgActivities(orgActivityList);
  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;      }            ArrayList orgActivityList =         new ArrayList(Arrays.asList(oplan.getOrgActivityArray()));      for (ListIterator iterator = orgActivityList.listIterator();           iterator.hasNext();) {        OrgActivity orgActivity = (OrgActivity) iterator.next();        if (orgActivity.getOrgID().equals(orgId)) {          iterator.remove();          removedObjects.add(orgActivity);        }      }      for (Iterator iterator = orgActivities.iterator();           iterator.hasNext();) {        OrgActivity orgActivity = (OrgActivity) iterator.next();        orgActivityList.add(orgActivity);        newObjects.add(orgActivity);      }      oplan.setOrgActivities(orgActivityList);      if (myPrivateState != null) {        myPrivateState.unpublishedChanges = true;      }    }  }