public static <T> void writeListTo(OutputStream out, List<T> messages, Schema<T> schema)
            throws IOException
    {
        writeListTo(out, messages, schema, DEFAULT_OUTPUT_FACTORY);
    }
Serializes the {@code messages} into the {@link OutputStream} using the given schema.
protostuff-xml/src/main/java/io/protostuff/XmlIOUtil.java