code: private static Path locateFileInCache(Configuration conf, String filename) throws IOException {
      return new Path(getInstancesFolder(FileSystem.get(conf), conf), filename);
    }
docs: Locates a file in the temporal folder
  
  @param conf
  The Hadoop Configuration.
  @param filename
  The file name.
  @throws IOException