@Override
    public URL read(final Kryo kryo, final Input input, final Class<? extends URL> aClass) {
        return FunctionUtils.doUnchecked(() -> {
            val url = kryo.readObject(input, String.class);
            return new URI(url).toURL();
        });
    }
Kryo serializer for {@link URL}.

@author Jerome Leleu
@since 4.0.0
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/serial/URLSerializer.java