jMethod.getModifiers().setStatic(true);
jMethod.addException(SGTypes.MARSHAL_EXCEPTION,
"if object is null or if any SAXException is thrown during marshaling");
jMethod.addException(SGTypes.VALIDATION_EXCEPTION,
"if this object is an invalid instance according to the schema");
jMethod.addParameter(new JParameter(SGTypes.READER, "reader"));
parent.addMethod(jMethod);
JSourceCode jsc = jMethod.getSourceCode();
jsc.add("return (");
jsc.append(returnType.getName());