Workflow wf = buildWorkflow(parent, subtasks); Expansion expansion = getPlanningFactory().createExpansion(parent.getPlan(), parent, wf, null); dfPlugin.publishAdd(expansion); }
    protected void createAndPublishExpansion(Task parent, Collection subtasks) {	Iterator subtasksIT = subtasks.iterator();	while(subtasksIT.hasNext()) {	    dfPlugin.publishAdd((Task) subtasksIT.next());	}	Workflow wf = buildWorkflow(parent, subtasks);	Expansion expansion = getPlanningFactory().createExpansion(parent.getPlan(), parent, wf, null);	dfPlugin.publishAdd(expansion);    }