@Override
    protected void compile(ProtoModule module, Proto proto) throws IOException
    {
        String javaPackageName = proto.getJavaPackageName();
        StringTemplateGroup group = getSTG(getOutputId());

        String fileName = resolveFileName(proto);
        Writer writer = CompilerUtil.newWriter(module, javaPackageName,
                "Schema" + fileName + ".java");

        AutoIndentWriter out = new AutoIndentWriter(writer);
        StringTemplate protoOuterBlock = group.getInstanceOf("proto_block");

        protoOuterBlock.setAttribute("proto", proto);
        protoOuterBlock.setAttribute("module", module);
        protoOuterBlock.setAttribute("options", module.getOptions());

        protoOuterBlock.write(out);
        writer.close();
    }
Generates a {@code Schema} from the code generated by the c++ v2 protoc.

@author David Yu
@created May 14, 2010
protostuff-compiler/src/main/java/io/protostuff/compiler/ProtoToJavaV2ProtocSchemaCompiler.java