NewTask t =  makeSubTask (ldmf,
logger.debug ("ldmf is " + ldmf + " taskToClone " + taskToClone);  NewTask t = makeSubTask (ldmf,
  public NewTask cloneTask(RootFactory ldmf,				  Task taskToClone) {    // Warning, this assumes that the task is part of a workflow!    Workflow flow = taskToClone.getWorkflow();    NewTask t =  makeSubTask (ldmf,			      taskToClone.getPlan(),			      flow.getParentTask (),			      taskToClone.getVerb(),			      taskToClone.getPrepositionalPhrases(),			      taskToClone.getDirectObject (),			      taskToClone.getPreferences(),			      taskToClone.getPriority(),			      taskToClone.getSource ());    addAuxiliaryQuery(taskToClone, t);    return t;  }