code: @Override
    public void initializeContext(ProfileRequestContext<?, ?> context) throws ExternalAutenticationErrorCodeException {
      final String logId = this.getLogString(context);
  
      // Get the requested principals (from the AuthnRequest)
      //
      RequestedPrincipalContext requestedPrincipalContext = requestedPrincipalLookupStrategy.apply(context);
      List<String> requstedPrincipals;
      if (requestedPrincipalContext == null) {
        log.info("No RequestedPrincipalContext available - no AuthnContextClassRefs in AuthnRequest [{}]", logId);
        requstedPrincipals = Collections.emptyList();
      }
      else {
        // Sort the URI:s so the ones most prefered by the IdP ends up first in the list.
        //
        requstedPrincipals = requestedPrincipalContext.getRequestedPrincipals()
          .stream()
          .filter(AuthnContextClassRefPrincipal.class::isInstance)
          .sorted(principalComparator.reversed())
          .map(Principal::getName)
          .collect(Collectors.toList());
      }
  
      log.debug("Initializing RequestedAuthnContextClassContext with AuthnContextClassRef URI:s: {} [{}]", requestedPrincipalContext, logId);
      this.addAuthnContextClassContext(context, new AuthnContextClassContext(requstedPrincipals));
    }
docs: {@inheritDoc}