for (Iterator it = eventHandler.getEvents().iterator(); it.hasNext(); ) {
OnEvent onEvent = (OnEvent)it.next();
eventHandlerElement.appendChild(onEvent2XML(onEvent));
}
for (Iterator it = eventHandler.getAlarm().iterator(); it.hasNext(); ) {
OnAlarm onAlarm = (OnAlarm)it.next();
eventHandlerElement.appendChild(onAlarm2XML(onAlarm));
}
// serialize local namespace prefixes to XML
bpelNamespacePrefixManager.serializePrefixes(eventHandler, eventHandlerElement);
extensibleElement2XML(eventHandler, eventHandlerElement);