docs: public static int parseInt(String value, String errorMsgOnParseFailure) {
        if (value == null) {
           throw new SearchException(errorMsgOnParseFailure);
        } else {
           try {
              return Integer.parseInt(value.trim());
           } catch (NumberFormatException nfe) {
              throw log.getInvalidIntegerValueException(errorMsgOnParseFailure, nfe);
           }
        }
     }