+ " Updating Task: " + gls);
+ " Adding Task: " + gls);
  private void updateGLS() {    Vector prepphrases = new Vector();    PlanElement pe = (PlanElement) glsSubscription.first();    Task gls = pe.getTask();    NewPrepositionalPhrase pp = makeForOplanStagesPhrase();    // Get the curr EstimatedResult. If it is not 1.0, complain loudly    // with a Stacktrace    AllocationResult currAR = pe.getEstimatedResult();    if (currAR != null && currAR.getConfidenceRating() < 1.0) {      logger.error("updateGLS asked to change OplanStages to " + pp.getIndirectObject()                    + " when confidence was "                    + currAR.getConfidenceRating(), new Throwable());      return;    }    Enumeration origpp = gls.getPrepositionalPhrases();    while (origpp.hasMoreElements()) {      PrepositionalPhrase theorigpp = (PrepositionalPhrase) origpp.nextElement();      if (theorigpp.getPreposition().equals("ForOplanStages")) {        prepphrases.addElement(pp); // Substitute new phrase      } else { 	prepphrases.addElement(theorigpp);      }    }    ((NewTask)gls).setPrepositionalPhrases(prepphrases.elements());    if (logger.isInfoEnabled()) {      logger.info("updateGLS: sentStages changing to: " + pp.getIndirectObject());    }    blackboard.publishChange(gls);    // Explicitely set confidence to 0.0 so we don't get premature completion    pe.setEstimatedResult(PluginHelper.createEstimatedAllocationResult(gls,								       theLDMF,								       0.0,								       true));    blackboard.publishChange(pe);        if (logger.isDebugEnabled()) {      logger.debug("\n" + formatDate(System.currentTimeMillis())                    + " Updating Task: " + gls);    }  }