Element sourcesElement = createBPELElement("sources");
Iterator it = sources.getChildren().iterator();
while (it.hasNext()) {
Element sourceElement = createBPELElement("source");
sourcesElement.appendChild(sourceElement);
Source source = (Source)it.next();
sourceElement.setAttribute("linkName", source.getLink().getName());
Condition transitionCondition = source.getTransitionCondition();
if (transitionCondition != null) {
sourceElement.appendChild(expression2XML(transitionCondition, "transitionCondition"));
}
extensibleElement2XML(source, sourceElement);
}