public static IGraphElement CreateSmartObject(this ElementBuilder elementBuilder, IStore store, SmartObjectReferenceNodeModel model)
        {
            if (model.NeedsUpdate())
            {
                model.DefineNode();
            }

            var ui = new SmartObjectReferenceNode();

            ui.Setup(model, store, elementBuilder.GraphView);
            return(ui);
        }
 public static GraphElement CreateSmartObject(this INodeBuilder builder, Store store, SmartObjectReferenceNodeModel model)
 {
     return(new SmartObjectReferenceNode(model, store, builder.GraphView));
 }