public String getRemoteModelName(StringTemplateGroup group, Message message) throws IOException
    {
        StringWriter writer = new StringWriter(16);
        NoIndentWriter out = new NoIndentWriter(writer);

        StringTemplate messageBlock = group.getInstanceOf("remote_model_name");
        messageBlock.setAttribute("message", message);
        messageBlock.setAttribute("name", message.getName());
        messageBlock.write(out);

        String result = writer.toString();
        writer.close();

        return result;
    }
Compiles proto files to protobuf java messages (pojos). Generates a {@code Schema} from the proto files.
<ul>
<li>Schemas are always separated from messages</li>
<li>Schemas are able to be inherited</li>
<li>Schemas have a lot of Annotation/Options to configure compiler output</li>
<li>@Transient support for Messages/Enumerations</li>
</ul>

@author Ivan Prisyazhniy
@created Mar 9, 2012
protostuff-compiler/src/main/java/io/protostuff/compiler/ProtoToJavaBeanModelCompiler.java