for (DataPort dataPort : outputPorts) {
wsNode.addOutputPort(new CepPort(dataPort.toXML()));
}
return wsNode;
}else if(node instanceof CepNode){
CepNode cepNode = new CepNode(((CepNode) node).toXML());
List<DataPort> inputPorts = node.getInputPorts();
for (DataPort dataPort : inputPorts) {
CepPort cepPort = new CepPort(dataPort.toXML());
cepNode.addInputPort(cepPort);
}
List<DataPort> outputPorts = node.getOutputPorts();
for (DataPort dataPort : outputPorts) {
cepNode.addOutputPort(new CepPort(dataPort.toXML()));
}
((NodeImpl)cepNode).setGraph(wsGraph);
return cepNode;
}else if(node instanceof InputNode){
InputNode inputNode = new InputNode(((InputNode) node).toXML());