// }
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){
nodeGUI=new ConstantNodeGUI((ConstantNode)node);
} else if (node instanceof IfNode){