code: protected static List<String> getSupportedNameIdFormats(final SamlRegisteredService service,
                                                              final SamlRegisteredServiceServiceProviderMetadataFacade adaptor) {
          val supportedNameFormats = adaptor.getSupportedNameIdFormats();
          LOGGER.debug("Metadata for [{}] declares the following NameIDs [{}]", adaptor.getEntityId(), supportedNameFormats);
  
          if (supportedNameFormats.isEmpty()) {
              supportedNameFormats.add(NameIDType.TRANSIENT);
              LOGGER.debug("No supported nameId formats could be determined from metadata. Added default [{}]", NameIDType.TRANSIENT);
          }
          if (StringUtils.isNotBlank(service.getRequiredNameIdFormat())) {
              val fmt = parseAndBuildRequiredNameIdFormat(service);
              supportedNameFormats.add(0, fmt);
              LOGGER.debug("Added required nameId format [{}] based on saml service configuration for [{}]", fmt, service.getServiceId());
          }
          return supportedNameFormats;
      }
docs: Gets supported name id formats.
  
  @param service the service
  @param adaptor the adaptor
  @return the supported name id formats