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