public static Integer getInt(String v, Integer defaultMissing) {
        if (v == null || v.isEmpty()) {
            return defaultMissing;
        }
        try {
            return Integer.parseInt(v);
        } catch (NumberFormatException e) {
            //NO OP
        }
        return defaultMissing;
    }
Parses v.  If there is a problem, this returns defaultMissing.

@param v              string to parse
@param defaultMissing value to return if value is null or unparseable
@return parsed value
tika-batch/src/main/java/org/apache/tika/util/PropsUtil.java