code: @SuppressWarnings("unchecked")
      private Set<Path> extractUserProvidedClassPathEntries(Container container) {
          Map<Path, List<String>> localizedResources;
          try {
              Field lf = container.getClass().getDeclaredField("localizedResources");
              lf.setAccessible(true);
              localizedResources = (Map<Path, List<String>>) lf.get(container);
              Set<Path> paths = localizedResources.keySet();
              // Needed for Tez
              for (Path path : paths) {
                  if (path.toString().endsWith("tez-conf.pb") || path.toString().endsWith("tez-dag.pb")){
                      File sourceFile = new File(path.toUri());
  
                      File targetFile = new File(System.getenv(Environment.PWD.name()) + "/" + sourceFile.getName());
                      FileUtils.copyFile(sourceFile, targetFile);
  
  //			System.out.println("######## Copied file: " + targetFile);
  //			FileInputStream fis = new FileInputStream(new File(System.getenv(Environment.PWD.name()), targetFile.getName()));
  //			System.out.println(fis.available());
  //			fis.close();
  //			break;
                  }
              }
              return paths;
          }
          catch (Exception e) {
              throw new RuntimeException(e);
          }
      }
docs: Extracts {@link LocalResource}s from the {@link Container}.