subtask.setVerb(Verb.getVerb(st_verb));
subtask.setVerb(Verb.get(st_verb));
  private Task createSubTask(Task parent, String st_verb, int offset, int duration) {    NewTask subtask = theLDMF.newTask();    subtask.setParentTask(parent);    subtask.setVerb(Verb.getVerb(st_verb));    subtask.setPlan(parent.getPlan());    // use parent's prep phrases for now.    subtask.setPrepositionalPhrases(parent.getPrepositionalPhrases());    //set up preferences - first find the start time of the parent task    Date childST = null;    Date childET = null;    Enumeration parentprefs = parent.getPreferences();    while (parentprefs.hasMoreElements()) {      Preference apref = (Preference)parentprefs.nextElement();      if (apref.getAspectType() == AspectType.START_TIME) {	Calendar cal = Calendar.getInstance();	cal.setTime(cday);	cal.add(Calendar.DATE, offset);        childST = cal.getTime();        cal.add(Calendar.DATE, duration);        childET = cal.getTime();      }      break;    }	    Vector prefs = new Vector();    AspectValue startAV = AspectValue.newAspectValue(AspectType.START_TIME, childST.getTime());    ScoringFunction startSF = ScoringFunction.createPreferredAtValue(startAV, 2);    Preference startPref = theLDMF.newPreference(AspectType.START_TIME, startSF);    prefs.addElement(startPref);     AspectValue endAV = AspectValue.newAspectValue(AspectType.END_TIME, childET.getTime());    ScoringFunction endSF = ScoringFunction.createPreferredAtValue(endAV, 2);    Preference endPref = theLDMF.newPreference(AspectType.END_TIME, endSF);    prefs.addElement(endPref);    subtask.setPreferences(prefs.elements());    return subtask;  }