code: public static <T> void writeListTo(OutputStream out, List<T> messages, Schema<T> schema)
              throws IOException
      {
          writeListTo(out, messages, schema, DEFAULT_OUTPUT_FACTORY);
      }
docs: Serializes the {@code messages} into the {@link OutputStream} using the given schema.