// PortGUI portGUI=new PortGUI(port);
// return portGUI;
// }
private static GraphPieceGUI createNodeGUI(GraphPiece node){
GraphPieceGUI nodeGUI=null;
if (node instanceof SubWorkflowNode){
nodeGUI=new SubWorkflowNodeGUI((SubWorkflowNode)node);
} else if (node instanceof DynamicNode){
nodeGUI=new DynamicNodeGUI((DynamicNode)node);
} else if (node instanceof ConstantNode){