public static Path resolveRelative(Path p, String other) {
        Path op = Paths.get(other);
        if (op.isAbsolute()) {
            throw new IllegalArgumentException(other + " cannot be an absolute path!");
        }
        return p.resolve(op);
    }
Convenience method to ensure that "other" is not an absolute path.
One could imagine malicious use of this.

@param p
@param other
@return resolved path
@throws IllegalArgumentException if "other" is an absolute path
tika-batch/src/main/java/org/apache/tika/batch/fs/FSUtil.java