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){
nodeGUI=new IfNodeGUI((IfNode)node);
} else if (node instanceof ExitNode){
nodeGUI=new ExitNodeGUI((ExitNode)node);
} else if (node instanceof OutputNode){