@Override
    public boolean hasNext() {
      try {
        return iterator.hasNext();
      } catch (IOException e) {
        throw new UncheckedIOException(e);
      }
    }
Resolves a symlink on a local filesystem. In case of any exceptions or scheme other than "file"
it simply returns the original path. Refer to DEBUG level logs for further details.
@param path input path to be resolved
@param conf a Configuration instance to be used while e.g. resolving the FileSystem if necessary
@return the resolved target Path or the original if the input Path is not a symlink
@throws IOException
common/src/java/org/apache/hadoop/hive/common/FileUtils.java