docs: public static Map<String, Object> buildEventAttributeMap(final Principal principal,
                                                               final Optional<RegisteredService> service,
                                                               final MultifactorAuthenticationProvider provider) {
          val map = new HashMap<String, Object>();
          map.put(Principal.class.getName(), principal);
          service.ifPresent(svc -> map.put(RegisteredService.class.getName(), svc));
          map.put(MultifactorAuthenticationProvider.class.getName(), provider);
          return map;
      }