setStartTimePreference(subtask, TaskUtils.getStartTime(parent)); setEndTimePreference(subtask, TaskUtils.getEndTime(parent));
setStartTimePreference(subtask, getTaskUtils().getStartTime(parent)); setEndTimePreference(subtask, getTaskUtils().getEndTime(parent));
  private NewTask createMILTask(Task parent, Inventory inventory) {    NewTask subtask = inventoryPlugin.getRootFactory().newTask();    subtask.setDirectObject(inventory);    subtask.setParentTask(parent);    subtask.setVerb(new Verb(Constants.Verb.MAINTAININVENTORY));    setStartTimePreference(subtask, TaskUtils.getStartTime(parent));    setEndTimePreference(subtask, TaskUtils.getEndTime(parent));    return subtask;  }