@Override
    public CloseableKryo borrow() {
        return obtain();
    }
This is {@link CasKryoPool}. It provides pooling while allowing for try-with-resources to be used.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-memcached-core/src/main/java/org/apereo/cas/memcached/kryo/CasKryoPool.java