/**
* Parses a parallel gateway declaration.
*/
public ActivityImpl parseParallelGateway(Element parallelGwElement, ScopeImpl scope) {
ActivityImpl activity = createActivityOnScope(parallelGwElement, scope);
activity.setActivityBehavior(new ParallelGatewayActivityBehavior());
parseExecutionListenersOnScope(parallelGwElement, activity);
for (BpmnParseListener parseListener : parseListeners) {
parseListener.parseParallelGateway(parallelGwElement, scope, activity);