}
} else if (context.getNewObject() instanceof IntermediateCatchEvent) {
if(((IntermediateCatchEvent) context.getNewObject()).getEventDefinitions().size() > 0) {
EventDefinition definition = ((IntermediateCatchEvent) context.getNewObject()).getEventDefinitions().get(0);
if(definition instanceof SignalEventDefinition) {
return new AddSignalCatchingEventFeature(this);
} else if(definition instanceof MessageEventDefinition) {
return new AddMessageCatchingEventFeature(this);
} else {
return new AddTimerCatchingEventFeature(this);
}