// } else if (node instanceof GraphPiece){
// nodeGUI=new GraphPieceGUI((GraphPiece)node);
} else if (node instanceof Port){
nodeGUI=new PortGUI((Port)node);
} else if (node instanceof Edge){
nodeGUI=new EdgeGUI((Edge)node);
} else if (node instanceof TerminateInstanceNode){
nodeGUI=new TerminateInstanceNodeGUI((TerminateInstanceNode)node);
} else if (node instanceof InstanceNode){
nodeGUI=new InstanceNodeGUI((InstanceNode)node);
} else if (node instanceof StreamSourceNode){