StartEvent startEvent = (StartEvent) context.getNewObject();
if (startEvent.getEventDefinitions().size() > 0) {
if (startEvent.getEventDefinitions().get(0) instanceof TimerEventDefinition) {
return new AddTimerStartEventFeature(this);
} if (startEvent.getEventDefinitions().get(0) instanceof MessageEventDefinition) {
return new AddMessageStartEventFeature(this);
} else {
return new AddErrorStartEventFeature(this);
}
} else {
return new AddStartEventFeature(this);