code:     private Priority getPriority(String severity) {
          if (SEVERITY_FATAL.equals(severity) || SEVERITY_ERROR.equals(severity)) {
              return Priority.HIGH;
          }
          if (SEVERITY_INFORMATIONAL.equals(severity)) {
              return Priority.LOW;
          }
          return Priority.NORMAL;
      }
  
  