if (t.getPlanElement() != null) publishRemove (t.getPlanElement());
  public void handleProjectSupplyTask(Task t) {    wantConfidence = true;    handleTask(t);    Preference pref = prefHelper.getPrefWithAspectType (t, AlpineAspectType.DEMANDRATE);    AspectValue ratePerSec = pref.getScoringFunction().getBest().getAspectValue();    if (isInfoEnabled ())       info (getName () + ".handleTask - task " + t.getUID() + " had p.e. " + t.getPlanElement().getUID());    if (t.getPlanElement () instanceof Expansion) {      addToEstimatedAR (t.getPlanElement (), ratePerSec);      if (isInfoEnabled()) {        Workflow tasksWorkflow = t.getWorkflow();        Workflow peWorkflow = ((Expansion)t.getPlanElement()).getWorkflow();        info (getName () + ".handleTask " + t.getUID() + " in " + ((tasksWorkflow != null) ? tasksWorkflow.getUID().toString() : "null wf?")+              " p.e. " +t.getPlanElement ().getUID() + " p.e. wf. " + ((peWorkflow != null) ? peWorkflow.getUID().toString() : " null p.e. wf?"));      }    }     else if (isWarnEnabled ())       warn (getName () + ".handleTask - task " + t.getUID() + " had no p.e.???");  }