private Cache<String, Map<String, List<Object>>> getRegisteredServiceCacheInstance(
        final RegisteredService registeredService, final RegisteredServicePrincipalAttributesRepository repository) {

        val key = buildRegisteredServiceCacheKey(registeredService);
        if (registeredServicesCache.containsKey(key)) {
            return registeredServicesCache.get(key);
        }
        val cache = initializeCache(repository);
        registeredServicesCache.put(key, cache);
        return cache;
    }
This is {@link DefaultPrincipalAttributesRepositoryCache}.

@author Misagh Moayyed
@since 6.1.0
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/authentication/principal/cache/DefaultPrincipalAttributesRepositoryCache.java