if (logger.isDebugEnabled()) { logger.debug("Agent: " + dfPlugin.getClusterId().toString() + "DetReqExp type[" + dfPlugin.getSupplyType() + "] " + " Expanding DetReq: " + parent.getUID() + " Expansion is: " + expansion.getUID()); }
  protected void createAndPublishExpansion(Task parent, Collection subtasks) {    Iterator subtasksIT = subtasks.iterator();    while (subtasksIT.hasNext()) {      dfPlugin.publishAdd(subtasksIT.next());    }    Workflow wf = buildWorkflow(parent, subtasks);    Expansion expansion = getPlanningFactory().createExpansion(parent.getPlan(), parent, wf, null);    dfPlugin.publishAdd(expansion);  }