code: private static Path setupSingleLocalResource(
  			String key,
  			FileSystem fs,
  			ApplicationId appId,
  			Path localSrcPath,
  			Map<String, LocalResource> localResources,
  			Path targetHomeDir,
  			String relativeTargetPath) throws IOException, URISyntaxException {
  
  		Tuple2<Path, LocalResource> resource = Utils.setupLocalResource(
  			fs,
  			appId.toString(),
  			localSrcPath,
  			targetHomeDir,
  			relativeTargetPath);
  
  		localResources.put(key, resource.f1);
  
  		return resource.f0;
  	}
docs: Uploads and registers a single resource and adds it to <tt>localResources</tt>.
  
  @param key
  the key to add the resource under
  @param fs
  the remote file system to upload to
  @param appId
  application ID
  @param localSrcPath
  local path to the file
  @param localResources
  map of resources
  
  @return the remote path to the uploaded resource