public class SubProcessParser implements BpmnXMLConstants {
public void parse(XMLStreamReader xtr, List<SubProcess> activeSubProcessList, Process activeProcess) {
SubProcess subProcess = null;
if (ELEMENT_TRANSACTION.equalsIgnoreCase(xtr.getLocalName())) {
subProcess = new Transaction();
} else if (ATTRIBUTE_VALUE_TRUE.equalsIgnoreCase(xtr.getAttributeValue(null, ATTRIBUTE_TRIGGERED_BY))) {
subProcess = new EventSubProcess();
} else {
subProcess = new SubProcess();
}