public IAddFeature getAddFeature(IAddContext context) {
// is object for add request a EClass or EReference?
if (context.getNewObject() instanceof Flow) {
return new AddFlowFeature(this);
} else if (context.getNewObject() instanceof AbstractNode) {
return new AddNodeFeature(this);
}
return super.getAddFeature(context);
}