sampleProcDef = (ProcessDefinition) GlobalContext.deserialize(new FileInputStream(args[0]), ProcessDefinition.class);
ActivityDesigner actDesigner = sampleProcDef.createDesigner();
SwitchActivity switchAct = new SwitchActivity();
switchAct.addChildActivity(new HumanActivity());
switchAct.addChildActivity(new HumanActivity());
JPanel panel = new JPanel(new BorderLayout());
Component switchDesigner = switchAct.createDesigner().getComponent();
panel.add("Center", switchDesigner);
panel.setPreferredSize(new Dimension(300,200));