public YamlOutput use(Schema<?> schema)
    {
        this.schema = schema;

        return this;
    }
Before serializing a message/object tied to a schema, this should be called.
protostuff-yaml/src/main/java/io/protostuff/YamlOutput.java