}
List elseIfs = _if.getElseIf();
if (!elseIfs.isEmpty()) {
for (Iterator i = elseIfs.iterator(); i.hasNext();) {
ElseIf elseIf = (ElseIf)i.next();
Element elseIfElement = createBPELElement("elseif");
ifElement.appendChild(elseIfElement);
if (elseIf.getCondition() != null) {
elseIfElement.appendChild(expression2XML(elseIf.getCondition(), "condition"));
}
if (elseIf.getActivity() != null) {
elseIfElement.appendChild(activity2XML(elseIf.getActivity()));
}
// serialize local namespace prefixes to XML
bpelNamespacePrefixManager.serializePrefixes(elseIf, elseIfElement);
extensibleElement2XML(elseIf, elseIfElement);
}