public static boolean isMatchingTail(final Path pathToSearch, String pathTail) {
    return isMatchingTail(pathToSearch, new Path(pathTail));
  }
Compare path component of the Path URI; e.g. if hdfs://a/b/c and /a/b/c, it will compare the
'/a/b/c' part. Does not consider schema; i.e. if schemas different but path or subpath matches,
the two will equate.
@param pathToSearch Path we will be trying to match against.
@param pathTail     what to match
@return True if <code>pathTail</code> is tail on the path of <code>pathToSearch</code>
hbase-common/src/main/java/org/apache/hadoop/hbase/util/CommonFSUtils.java