XmlElement graphElement = workflowElement
.element(GraphSchema.GRAPH_TAG);
this.graph = WSGraphFactory.createGraph(graphElement);
XmlElement wsdlsElement = workflowElement.element(WSDLS_TAG);
for (XmlElement wsdlElement : wsdlsElement.elements(null, WSDL_TAG)) {
String wsdlText = wsdlElement.requiredText();
WsdlDefinitions wsdl = WSDLUtil.stringToWSDL(wsdlText);
String id = wsdlElement.attributeValue(NS_XWF, ID_ATTRIBUTE);
if (id == null || id.length() == 0) {
// xwf up to 2.2.6_2 doesn't have ID.