code: private Priority parsePriority(final String warningTypeString) {
          if (StringUtils.equalsIgnoreCase(warningTypeString, "notice")) {
              return Priority.LOW;
          }
          else if (StringUtils.equalsIgnoreCase(warningTypeString, "warning")) {
              return Priority.NORMAL;
          }
          else if (StringUtils.equalsIgnoreCase(warningTypeString, "error")) {
              return Priority.HIGH;
          }
          else {
              // empty label or other unexpected input
              return Priority.HIGH;
          }
      }
docs: Returns the priority ordinal matching the specified warning type string.
  
  @param warningTypeString
  a string containing the warning type returned by a regular
  expression group matching it in the warnings output.
  @return the priority