public void showPlanElement (Task subTask) { showPlanElement (subTask, -1); }  protected void showPlanElement (Task subTask, int taskNum) { PlanElement pe = subTask.getPlanElement ();  if (prepHelper.hasPrepNamed (subTask, "TASKEDTO"))      if (pe == null) { logger.warn ("\t no PE yet."); showPreferences (subTask); } else { if (pe.getEstimatedResult () == null) logger.warn ("\t" + " NULL EST AR"); else showPreferences (subTask, pe.getEstimatedResult().getAspectValueResults()); } }  public void showPreferences (Task t, AspectValue[] aspects) { Enumeration prefs; synchronized (t) { prefs = t.getPreferences ();} Map map = new HashMap ();  for (; prefs.hasMoreElements (); ) { Preference pref = (Preference) prefs.nextElement (); map.put (new Integer (pref.getAspectType ()), pref); }
  public void showExpansion(Expansion exp) {    logger.info("--------------- exp " + exp.getUID () + " ----------------");    Workflow wf = exp.getWorkflow ();    if (wf == null)      return;    int i = 0;    for (Enumeration enum = wf.getTasks (); enum.hasMoreElements (); ) {      showPlanElement((Task) enum.nextElement (), i++);    }  }  public void showPlanElement (Task subTask) {    showPlanElement (subTask, -1);  }  protected void showPlanElement (Task subTask, int taskNum) {    PlanElement pe = subTask.getPlanElement ();//    String extra = "";    if (prepHelper.hasPrepNamed (subTask, "TASKEDTO")) //      extra = " TASKEDTO " + prepHelper.getIndirectObject (subTask, "TASKEDTO");     // 	logger.debug ("\t" + ((taskNum != -1) ? "#" + taskNum : "") +     // 			    " FROM " + prepHelper.getFromLocation (subTask) +     // 			    " TO "    + prepHelper.getToLocation   (subTask) + extra);    if (pe == null) {      logger.warn ("\t no PE yet.");      showPreferences (subTask);    }    else {      if (pe.getEstimatedResult () == null)	logger.warn ("\t" + " NULL EST AR");      else	showPreferences (subTask,                          pe.getEstimatedResult().getAspectValueResults());    }  }  public void showPreferences (Task t,			       AspectValue[] aspects) {    Enumeration prefs;    synchronized (t) { prefs = t.getPreferences ();} // bug #2125    Map map = new HashMap ();    for (; prefs.hasMoreElements (); ) {      Preference pref = (Preference) prefs.nextElement ();      map.put (new Integer (pref.getAspectType ()), pref);    }