((NewTask)subtask).setParentTask(t);
  public void handleTask(Task t) {    NewTask subtask = expandHelper.makeSubTask (ldmf, t, t.getDirectObject(), getAgentIdentifier());    subtask.setContext (t.getContext());    NewWorkflow wf  = ldmf.newWorkflow();    wf.setParentTask(t);    ((NewTask)subtask).setWorkflow(wf);    wf.addTask (subtask);    Expansion   exp = ldmf.createExpansion(t.getPlan(), t, wf, null);    publishAdd(subtask);    publishAdd(exp);    super.handleTask (subtask);  }