jm.addBreak();
jm.addCase("1");
JavaQName elementInterface = pController.getClassContext().getXMLInterfaceName();
LocalJavaField element = jm.newJavaField(elementInterface);
element.addLine("(", elementInterface, ") getResult()");
jm.addSwitch(pStateVar);
for (int i = 0; i < myParticles.length; i++) {
ParticleSG child = myParticles[i];
ObjectSG osg = child.getObjectSG();
TypeSG childType = osg.getTypeSG();
jm.addCase(Integer.toString(3+i));