private JavaField getXMLHandlersStateField(GroupSG pController, JavaSource pSource) throws SAXException {
ParticleSG[] myParticles = pController.getParticles();
if (myParticles.length > 0) {
JavaField jf = pSource.newJavaField("__state", int.class, JavaSource.PRIVATE);
JavaComment jc = jf.newComment();
jc.addLine("The current state. The following values are valid states:");
jc.addLine(" 0 = Before parsing the element");
jc.addLine(" 1 = Parsing an unknown element");
jc.addLine(" 2 = After parsing the element");
for (int i = 0; i < myParticles.length; i++) {
ParticleSG particle = myParticles[i];