code: public static final int parseInt(String value, int defValue, String errorMsgOnParseFailure) {
        if (StringHelper.isEmpty(value)) {
           return defValue;
        } else {
           return parseInt(value, errorMsgOnParseFailure);
        }
     }
docs: In case value is null or an empty string the defValue is returned
  
  @param value
  @param defValue
  @param errorMsgOnParseFailure
  @return the converted int.
  @throws SearchException if value can't be parsed.