public void simpleContent(ComplexTypeSG pType) throws SAXException {
JavaQName elementInterface = pType.getClassContext().getXMLInterfaceName();
castedElement = jm.newJavaField(elementInterface);
castedElement.addLine("(", elementInterface, ") ", element);
LocalJavaField chars = jm.newJavaField(String.class);
SimpleContentSG simpleContent = pType.getSimpleContentSG();
Object value = simpleContent.getPropertySG().getValue(castedElement);
chars.addLine(simpleContent.getContentTypeSG().getSimpleTypeSG().getCastToString(jm, value, controller));
jm.addIf(chars, " != null && ", chars, ".length() > 0");
LocalJavaField charArray = jm.newJavaField(char[].class);
charArray.addLine(chars, ".toCharArray()");
jm.addLine(handler, ".characters(", charArray, ", 0, ", charArray, ".length);");
jm.addEndIf();