@Override
    public void write(final Kryo kryo, final Output output, final Map<Object, ?> objectMap) {
        kryo.writeObject(output, new HashMap<>(objectMap));
    }
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