docs: @SneakyThrows
      public static Set<Event> resolveEventViaSingleAttribute(final Principal principal,
                                                              final Object attributeValue,
                                                              final RegisteredService service,
                                                              final Optional<RequestContext> context,
                                                              final MultifactorAuthenticationProvider provider,
                                                              final Predicate<String> predicate) {
          if (!(attributeValue instanceof Collection)) {
              LOGGER.debug("Attribute value [{}] is a single-valued attribute", attributeValue);
              if (predicate.test(attributeValue.toString())) {
                  LOGGER.debug("Attribute value predicate [{}] has matched the [{}]", predicate, attributeValue);
                  return evaluateEventForProviderInContext(principal, service, context, provider);
              }
              LOGGER.debug("Attribute value predicate [{}] could not match the [{}]", predicate, attributeValue);
  
          }
          LOGGER.debug("Attribute value [{}] is not a single-valued attribute", attributeValue);
          return null;
      }