// Write out each of the targets
Iterator it = targets.getChildren().iterator();
while (it.hasNext()) {
Element targetElement = createBPELElement("target");
targetsElement.appendChild(targetElement);
Target target = (Target)it.next();
targetElement.setAttribute("linkName", target.getLink().getName());
extensibleElement2XML(target, targetElement);
}
extensibleElement2XML(targets, targetsElement);
return targetsElement;
}