NodeList elementsList = document.getDocumentElement().getElementsByTagName(TASK_ELEMENT_NAME);
for (int j = 0; j < elementsList.getLength(); j++) {
Element element = (Element) elementsList.item(j);
String taskName = element.getAttribute(NAME_ATTRIBUTE_NAME);
try {
TaskState taskState = (TaskState) definition.getNodeByName(taskName);
taskState.setIgnoreSubstitution(true);
} catch (Exception e) {
DesignerLogger.logErrorWithoutDialog("No swimlane found for " + taskName, e);
}
}
}