code: public static DriverFiles fromJobSubmission(
        final JobSubmissionEvent jobSubmissionEvent,
        final REEFFileNames fileNames) throws IOException {
  
      final DriverFiles driverFiles = new DriverFiles(fileNames);
  
      for (final FileResource frp : jobSubmissionEvent.getGlobalFileSet()) {
        final File f = new File(frp.getPath());
        if (frp.getType() == FileType.LIB) {
          driverFiles.addGlobalLib(f);
        } else {
          driverFiles.addGlobalFile(f);
        }
      }
  
      for (final FileResource frp : jobSubmissionEvent.getLocalFileSet()) {
        final File f = new File(frp.getPath());
        if (frp.getType() == FileType.LIB) {
          driverFiles.addLocalLib(f);
        } else {
          driverFiles.addLocalFile(f);
        }
      }
  
      return driverFiles;
    }
docs: Instantiates an instance based on the given JobSubmissionProto.
  
  @param jobSubmissionEvent the JobSubmissionProto to parse.
  @return a DriverFiles instance pre-populated with the information from the given JobSubmissionProto.
  @throws IOException