code: String stripAppId(String origId) {
      if (origId == null || origId.isEmpty()) {
        return "";
      }
      Matcher m = stripBracketsPattern.matcher(origId);
      String cleanedAppId = m.replaceAll("");
      Matcher tailMatcher = stripSequencePattern.matcher(cleanedAppId);
      if (tailMatcher.matches()) {
        cleanedAppId = tailMatcher.group(1);
      }
      return cleanedAppId;
    }
docs: Strips out metadata in brackets to get a clean app name. There are multiple job name formats
  used by various frameworks. This method attempts to normalize these job names into a somewhat
  human readable appId format.