public static Path internUriStringsInPath(Path path) {
    if (path != null) internStringsInUri(path.toUri());
    return path;
  }
This method interns all the URI strings in place.
Goes over the URI strings, checks if each string element is already interned,
and if not it replaces each element with the interned copy.
Eventually returns the same URI.

@param uri
@return
common/src/java/org/apache/hadoop/hive/common/StringInternUtils.java