docs: private PriorityCode convertClassValueToPriority(String tagvalue) {
          int classvalue;
          try {
              classvalue = Integer.parseInt(tagvalue);
          } catch (NumberFormatException e) {
              return UNCHANGED;
          }
  
          switch (classvalue) {
              case 3:
                  return BEST;
              case 2:
                  return VERY_NICE;
              case 1:
                  return PREFER;
              case 0:
                  return UNCHANGED;
              case -1:
                  return AVOID_IF_POSSIBLE;
              case -2:
                  return REACH_DEST;
              case -3:
                  return AVOID_AT_ALL_COSTS;
              default:
                  return UNCHANGED;
          }
      }