@Override
        public <O extends OutputShim> void write(final KryoShim<?, O> kryo, final O output, final Period period) {
            output.writeInt(period.getYears());
            output.writeInt(period.getMonths());
            output.writeInt(period.getDays());
        }
Serializer for the {@link Period} class.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/structure/io/gryo/JavaTimeSerializers.java