//-- create main marshal method
JMethod jMethod = new JMethod(SGTypes.Object ,methodName);
jMethod.getModifiers().setStatic(true);
jMethod.addException(SGTypes.MarshalException);
jMethod.addException(SGTypes.ValidationException);
jMethod.addParameter(new JParameter(SGTypes.Reader, "reader"));
parent.addMethod(jMethod);
JSourceCode jsc = jMethod.getSourceCode();
jsc.add("return (");
jsc.append(parent.getName());