} else if(linkEventDefinitionElement != null) {
if (isAfterEventBasedGateway) {
addError("IntermediateCatchLinkEvent is not allowed after an EventBasedGateway.", intermediateEventElement);
}
nestedActivity.setActivityBehavior(new IntermediateCatchLinkEventActivityBehavior());
parseIntermediateLinkEventCatchBehavior(intermediateEventElement, nestedActivity, linkEventDefinitionElement);
} else {
addError("Unsupported intermediate catch event type", intermediateEventElement);
}