public static Path getPath(String v, Path defaultMissing) {
        if (v == null || v.isEmpty()) {
            return defaultMissing;
        }
        //trim initial and final " if they exist
        if (v.startsWith("\"")) {
            v = v.substring(1);
        }
        if (v.endsWith("\"")) {
            v = v.substring(0, v.length() - 1);
        }
        return Paths.get(v);
    }
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
@see #getPath(String, Path)
tika-batch/src/main/java/org/apache/tika/util/PropsUtil.java