JavaQName xmlImplementationName = pController.getClassContext().getXMLImplementationName();
JavaSourceFactory jsf = getSchema().getJavaSourceFactory();
JavaSource js = jsf.newJavaSource(xmlImplementationName, JavaSource.PUBLIC);
SerializableSG.makeSerializable(pController.getSchema(), js);
js.addImplements(pController.getClassContext().getXMLInterfaceName());
js.addImplements(JMElement.class);
TypeSG myTypeSG = pController.getTypeSG();
ComplexTypeSG complexTypeSG = myTypeSG.getComplexTypeSG();
if (myTypeSG.isGlobalClass()) {
js.addExtends(complexTypeSG.getClassContext().getXMLImplementationName());