@Override
        public <I extends InputShim> ByteBuffer read(final KryoShim<I, ?> kryo, final I input, final Class<ByteBuffer> clazz) {
            final int len = input.readInt();
            final byte[] b = input.readBytes(len);
            final ByteBuffer bb = ByteBuffer.allocate(len);
            bb.put(b);
            return bb;
        }
Serializer for {@code List} instances produced by {@code Arrays.asList()}.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java