if(definition instanceof ErrorEventDefinition) {
return new AddBoundaryErrorFeature(this);
} else if(definition instanceof SignalEventDefinition) {
return new AddBoundarySignalFeature(this);
} else if(definition instanceof MessageEventDefinition) {
return new AddBoundaryMessageFeature(this);
} else {
return new AddBoundaryTimerFeature(this);
}
}
} else if (context.getNewObject() instanceof IntermediateCatchEvent) {