code: public static String getRealm(String accessId) {
          Matcher m = matcher(accessId);
          if (m != null) {
              return m.group(2);
          }
          return null;
      }
docs: Given an accessId, extract the realm.
  
  @param accessId
  @return The realm for the accessId, or {@code null} if the accessId is invalid