/**
* @see edu.indiana.extreme.xbaya.component.ws.WSComponent#createNode(edu.indiana.extreme.xbaya.graph.Graph)
*/
@Override
public SubWorkflowNode createNode(Graph graph) {
SubWorkflowNode node = new SubWorkflowNode(graph);
node.setWorkflow(workflow.clone());
// Copy some infomation from the component
node.setName(getName());
node.setComponent(this);
// node.setWSDLQName(this.wsdlQName);
// Creates a unique ID for the node. This has to be after setName().
node.createID();
// Creat ports
createPorts(node);
return node;