public static <T> byte[] toByteArray(T message, Schema<T> schema)
    {
        return toByteArray(message, schema, DEFAULT_OUTPUT_FACTORY);
    }
Serializes the {@code message} into a byte array.
protostuff-xml/src/main/java/io/protostuff/XmlIOUtil.java