/**
* Parses an exclusive gateway declaration.
*/
public ActivityImpl parseExclusiveGateway(Element exclusiveGwElement, ScopeImpl scope) {
ActivityImpl activity = createActivityOnScope(exclusiveGwElement, scope);
activity.setActivityBehavior(new ExclusiveGatewayActivityBehavior());
parseExecutionListenersOnScope(exclusiveGwElement, activity);
for (BpmnParseListener parseListener : parseListeners) {
parseListener.parseExclusiveGateway(exclusiveGwElement, scope, activity);