code: public Map<String, List<Object>> getCachedAttributesFor(final RegisteredService registeredService,
                                                              final CachingPrincipalAttributesRepository repository,
                                                              final Principal principal) {
          val cache = getRegisteredServiceCacheInstance(registeredService, repository);
          return cache.get(principal.getId(), s -> {
              LOGGER.debug("No cached attributes could be found for [{}]", principal.getId());
              return new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
          });
      }
docs: Gets cached attributes. Locate the cache for the service first.
  
  @param registeredService the registered service
  @param repository        the repository
  @param principal         the principal
  @return the cached attributes for