docs: private NameID buildNameId(final RequestAbstractType authnRequest,
                                 final Object assertion,
                                 final SamlRegisteredService service,
                                 final SamlRegisteredServiceServiceProviderMetadataFacade adaptor,
                                 final MessageContext messageContext) throws SamlException {
          val supportedNameFormats = getSupportedNameIdFormats(service, adaptor);
          val requiredNameFormat = getRequiredNameIdFormatIfAny(authnRequest);
          validateRequiredNameIdFormatIfAny(authnRequest, adaptor, supportedNameFormats, requiredNameFormat);
          val nameid = determineNameId(authnRequest, assertion, supportedNameFormats, service, adaptor);
          return finalizeNameId(nameid, authnRequest, assertion, supportedNameFormats, service, adaptor);
      }