code:     public static IdStrategy idStrategy() {
          Jenkins j = Jenkins.getInstance();
          SecurityRealm realm = j.getSecurityRealm();
          if (realm == null) {
              return IdStrategy.CASE_INSENSITIVE;
          }
          return realm.getUserIdStrategy();
      }
  
  