code: protected boolean isUsagePolicyAcceptedBy(final Principal principal) {
          val attributes = principal.getAttributes();
          LOGGER.debug("Principal attributes found for [{}] are [{}]", principal.getId(), attributes);
  
          if (attributes != null && attributes.containsKey(this.aupAttributeName)) {
              val value = CollectionUtils.toCollection(attributes.get(this.aupAttributeName));
              LOGGER.debug("Evaluating attribute value [{}] found for [{}]", value, this.aupAttributeName);
              return value.stream().anyMatch(v -> v.toString().equalsIgnoreCase(Boolean.TRUE.toString()));
          }
          return false;
      }
docs: Is usage policy accepted by user?
  Looks into the attributes collected by the principal to find {@link #aupAttributeName}.
  If the attribute contains {@code true}, then the policy is determined as accepted.
  
  @param principal the principal
  @return true if accepted, false otherwise.