private void doPublishRootGLS(Organization me, Oplan oplan) {    openTransaction();
private void doPublishRootGLS(Organization me, Oplan oplan) {
private void doPublishRootGLS(Organization me, Oplan oplan) {    openTransaction();    NewTask task = theLDMF.newTask();    // ensure this is a root level task    task.setPlan(theLDMF.getRealityPlan());    task.setSource(this.getCluster().getClusterIdentifier());    task.setDestination(this.getCluster().getClusterIdentifier());        // set prepositional phrases    Vector phrases = new Vector(3);    NewPrepositionalPhrase newpp;    // Removed following as being redundant with the task's context//      newpp = theLDMF.newPrepositionalPhrase();//      newpp.setPreposition(Constants.Preposition.WITH);//      newpp.setIndirectObject(oplan);//      phrases.add(newpp);    newpp = theLDMF.newPrepositionalPhrase();    newpp.setPreposition(Constants.Preposition.FOR);    newpp.setIndirectObject(me);    phrases.add(newpp);    newpp = theLDMF.newPrepositionalPhrase();    newpp.setPreposition("ForRoot");    newpp.setIndirectObject(new Integer(++myPrivateState.taskNumber));    publishChange(myPrivateState);    phrases.add(newpp);    task.setPrepositionalPhrases(phrases.elements());    // verb    task.setVerb(Constants.Verb.GetLogSupport);    // schedule    long startTime = currentTimeMillis();    long endTime;    Date endDay = oplan.getEndDay();    if (endDay != null) {      endTime = endDay.getTime();    } else {      Calendar cal = Calendar.getInstance();      cal.setTime(new Date(startTime));      // increment date by 3 MONTHs      cal.add(Calendar.MONTH, 3);      endTime = cal.getTime().getTime();    }    TimeAspectValue startTav = new TimeAspectValue(AspectType.START_TIME, startTime);    TimeAspectValue endTav = new TimeAspectValue(AspectType.END_TIME, endTime);    ScoringFunction myStartScoreFunc = ScoringFunction.createStrictlyAtValue( startTav );    ScoringFunction myEndScoreFunc = ScoringFunction.createStrictlyAtValue( endTav );        Preference startPreference = theLDMF.newPreference( AspectType.START_TIME, myStartScoreFunc );    Preference endPreference = theLDMF.newPreference( AspectType.END_TIME, myEndScoreFunc  );    Vector preferenceVector = new Vector(2);    preferenceVector.addElement( startPreference );    preferenceVector.addElement( endPreference );    task.setPreferences( preferenceVector.elements() );    // Set the context    try {      UID oplanUID = oplan.getUID();      ContextOfUIDs context = new ContextOfUIDs(oplanUID);      System.out.println("GLSGUIInitPlugIn: Setting context to: " + oplanUID);      task.setContext(context);    } catch (Exception ex) {      ex.printStackTrace();    }        publishAdd(task);    System.out.println("\n" + formatDate(System.currentTimeMillis()) + " Send Task: " + task);  }