@Override
        public <I extends InputShim> Class[] read(final KryoShim<I, ?> kryo, final I input, final Class<Class[]> clazz) {
            final int size = input.readInt();
            final Class[] clazzes = new Class[size];
            for (int i = 0; i < size; i++) {
                try {
                    clazzes[i] = Class.forName(input.readString());
                } catch (Exception ex) {
                    throw new RuntimeException(ex);
                }
            }
            return clazzes;
        }
Serializer for {@code List} instances produced by {@code Arrays.asList()}.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/UtilSerializers.java