code: LocalResource makeLocalResourceForJarFile(final Path path) throws IOException {
      final LocalResource localResource = Records.newRecord(LocalResource.class);
      final FileStatus status = FileContext.getFileContext(this.fileSystem.getUri()).getFileStatus(path);
      localResource.setType(LocalResourceType.ARCHIVE);
      localResource.setVisibility(LocalResourceVisibility.APPLICATION);
      localResource.setResource(ConverterUtils.getYarnUrlFromPath(status.getPath()));
      localResource.setTimestamp(status.getModificationTime());
      localResource.setSize(status.getLen());
      return localResource;
    }
docs: Creates a LocalResource instance for the JAR file referenced by the given Path.
  
  @param path
  @return
  @throws IOException