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