code: public void putCachedAttributesFor(final RegisteredService registeredService,
                                         final CachingPrincipalAttributesRepository repository,
                                         final String id, final Map<String, List<Object>> attributes) {
          val cache = getRegisteredServiceCacheInstance(registeredService, repository);
          cache.put(id, attributes);
      }
docs: Put cached attributes.
  
  @param registeredService the registered service
  @param repository        the repository
  @param id                the id
  @param attributes        the attributes