// Graph
WSGraph graph = WSGraphFactory.createGraph(graphResource
.getXmlContent());
workflow.setGraph(graph);
workflow.bindComponents();
// Set the name of the workflow.
// This has to be after parsing the graph so that workflow instance name
// overwrites the name in the graph.
String name = null;