task = new ToolTask(parent, taskElement.getAttribute(NAME));
((ToolTask) task).setApplication(createApplication(Util4JAXPParser.child(taskElement,
APPLICATION)));
} else if (Task.SUBFLOW.equals(type)) {
task = new SubflowTask(parent, taskElement.getAttribute(NAME));
((SubflowTask) task).setSubWorkflowProcess(createSubWorkflowProcess(Util4JAXPParser.child(taskElement, SUB_WORKFLOW_PROCESS)));
} else {
return null;
}