@Override
    public Map<Object, ?> read(final Kryo kryo, final Input input, final Class<? extends Map<Object, ?>> aClass) {
        val map = kryo.readObject(input, HashMap.class);
        return new HashMap<>(map);
    }
This is {@link ImmutableNativeJavaMapSerializer}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/serial/ImmutableNativeJavaMapSerializer.java