publishOplanAndGLS();
System.out.println("GLSInitServlet: " + PUBLISH_ON_SELF_ORG + " = " + globalParameters.get(PUBLISH_ON_SELF_ORG));  publishOplanCoupon();  } }  if (oplanSubscription.hasChanged()) {  Collection adds = oplanSubscription.getAddedCollection(); if ((adds != null) && (selfOrgAsset != null) && (Boolean.valueOf((String) globalParameters.get(PUBLISH_ON_SELF_ORG)).booleanValue())) { for (Iterator i = adds.iterator(); i.hasNext(); ) { Oplan oplan = (Oplan) i.next(); doPublishRootGLS(oplan);
  public void execute(){    boolean doNotify = false;    if (stateSubscription.hasChanged()) {      checkForPrivateState(stateSubscription.getAddedList());    }    if (myorgassets.hasChanged()) {      handleMyOrgAssets(myorgassets.getAddedList());      if ((selfOrgAsset != null) &&          (Boolean.valueOf((String) globalParameters.get(PUBLISH_ON_SELF_ORG)).booleanValue())) {          publishOplanAndGLS();        }      }   if (oplanSubscription.hasChanged()) {//       Collection adds = oplanSubscription.getAddedCollection();//       if (adds != null) {//         System.out.println("GLSInitServlet: calling processOplanAdds opSubs changed.");// 	processOplanAdds(adds);//       }//       Collection changes = oplanSubscription.getChangedCollection();//       if (changes != null) {//         System.out.println("GLSInitServlet: oplanSubscription has changed.");// 	processChanges(changes);//       }//       Collection deletes = oplanSubscription.getRemovedCollection();//       if (deletes !=null) {// 	processOplanDeletes(deletes);//       }     doNotify = true;    }    if (glsSubscription.hasChanged()) {      doNotify = true;    }    if (requestSubscription.hasChanged()) {      processRequests(requestSubscription.getAddedCollection());    }//     //ContributorPredicate subscription - NEEDED???//     for (Iterator it = contributors.iterator(); it.hasNext();) {//       IncrementalSubscription is = (IncrementalSubscription) it.next();      //       // we don't care about adds, just deletes and changes//       if (is.hasChanged()) {// 	Collection changes = is.getChangedCollection();// 	if (changes != null) {// 	  processChanges(changes);// 	}// 	// Deletes of OplanContributors are treated as changes to the Oplan// 	changes = is.getRemovedCollection();// 	if (changes != null) {// 	  processChanges(changes);// 	}	//       }//     }    // update gui, if needed    if (doNotify) {      synchronized(monitor) {	monitor.notifyAll();      }    }  }