code: public static Mode parse(String value) {
      if (StringUtils.isBlank(value)) {
        throw new IllegalArgumentException(ExceptionMessage.INVALID_MODE.getMessage(value));
      }
  
      try {
        return parseNumeric(value);
      } catch (NumberFormatException e) {
        // Treat as symbolic
        return parseSymbolic(value);
      }
    }
docs: Parses the given value as a mode.
  @param value Value
  @return Mode