docs: public boolean isAuthenticationMechanismPresent(final String mechanismName) {
          if(loginConfig != null) {
              for(AuthMethodConfig method : loginConfig.getAuthMethods()) {
                  if(method.getName().equalsIgnoreCase(mechanismName)) {
                      return true;
                  }
              }
          }
          return false;
      }