if (oplans.hasChanged()) { Enumeration enum; if (oplans.getAddedList().hasMoreElements()) { enum = oplans.getAddedList(); while (enum.hasMoreElements()) { Oplan oplan = (Oplan)enum.nextElement(); UID oplanUID = oplan.getUID(); if (orgActivities == null) { orgActivities = (IncrementalSubscription) getBlackboardService().subscribe(new OrgActivitiesPredicate(oplanUID)); } }
if (myOplanSubscription.hasChanged()) {  for (Iterator iterator = myOplanSubscription.getAddedCollection().iterator(); iterator.hasNext();) { Oplan oplan = (Oplan)iterator.next(); UID oplanUID = oplan.getUID(); if (myOrgActivitySubscription == null) { myOrgActivitySubscription = (IncrementalSubscription) getBlackboardService().subscribe(new OrgActivitiesPredicate(oplanUID)); }
  public void execute() {    if (oplans.hasChanged()) {      Enumeration enum;      if (oplans.getAddedList().hasMoreElements()) {        enum = oplans.getAddedList();        while (enum.hasMoreElements()) {          Oplan oplan = (Oplan)enum.nextElement();          UID oplanUID = oplan.getUID();          if (orgActivities == null) {            orgActivities = (IncrementalSubscription)              getBlackboardService().subscribe(new OrgActivitiesPredicate(oplanUID));          }        }      }    }