public static <T> void writeListTo(MessagePacker packer, List<T> messages,
            Schema<T> schema, boolean numeric) throws IOException
    {
        MsgpackGenerator generator = new MsgpackGenerator(numeric);
        MsgpackOutput output = new MsgpackOutput(generator, schema);

        for (T m : messages)
        {
            schema.writeTo(output, m);
            generator.writeTo(packer);
            generator.reset();
        }

    }
Serializes the {@code messages} into the generator using the given schema.
protostuff-msgpack/src/main/java/io/protostuff/MsgpackIOUtil.java