((FormTask) task).setEditForm(createForm(Util4JAXPParser.child(taskElement, EDIT_FORM)));
((FormTask) task).setViewForm(createForm(Util4JAXPParser.child(taskElement, VIEW_FORM)));
((FormTask) task).setListForm(createForm(Util4JAXPParser.child(taskElement, LIST_FORM)));
} else if (Task.TOOL.equals(type)) {
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));