@Override
    public void destroy() {
        FunctionUtils.doIfNotNull(distributedCacheManager, DistributedCacheManager::close);
    }
This is {@link DefaultRegisteredServiceReplicationStrategy}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/replication/DefaultRegisteredServiceReplicationStrategy.java