code: protected Map<String, List<Object>> authorizeReleaseOfAllowedAttributes(final Principal principal,
                                                                              final Map<String, List<Object>> attrs,
                                                                              final RegisteredService registeredService,
                                                                              final Service selectedService) {
          val resolvedAttributes = new TreeMap<String, List<Object>>(String.CASE_INSENSITIVE_ORDER);
          resolvedAttributes.putAll(attrs);
          val attributesToRelease = new HashMap<String, List<Object>>();
          getAllowedAttributes()
              .stream()
              .filter(resolvedAttributes::containsKey)
              .forEach(attr -> {
                  LOGGER.debug("Found attribute [{}] in the list of allowed attributes", attr);
                  attributesToRelease.put(attr, resolvedAttributes.get(attr));
              });
          return attributesToRelease;
      }
docs: Authorize release of allowed attributes map.
  
  @param principal         the principal
  @param attrs             the attributes
  @param registeredService the registered service
  @param selectedService   the selected service
  @return the map