public List <ConflictTreeNode> BuildWorkflow(System.Text.StringBuilder xaml) { var wd = new WorkflowDesigner { Text = xaml.ToString() }; wd.Load(); var modelService = wd.Context.Services.GetService <ModelService>(); var workflowHelper = new WorkflowHelper(); var flowchartDiff = workflowHelper.EnsureImplementation(modelService).Implementation as Flowchart; if (flowchartDiff.StartNode == null) { return(new List <ConflictTreeNode>()); } var nodes = BuildNodeItems(wd, modelService, flowchartDiff); return(nodes); }