code: static YarnClusterSubmissionFromCS fromJobSubmissionParametersFile(final File yarnClusterAppSubmissionParametersFile,
                                                                       final File yarnClusterJobSubmissionParametersFile)
        throws IOException {
      try (final FileInputStream appFileInputStream = new FileInputStream(yarnClusterAppSubmissionParametersFile)) {
        try (final FileInputStream jobFileInputStream = new FileInputStream(yarnClusterJobSubmissionParametersFile)) {
          // this is mainly a test hook
          return readYarnClusterSubmissionFromCSFromInputStream(appFileInputStream, jobFileInputStream);
        }
      }
    }
docs: Takes the YARN cluster job submission configuration file, deserializes it, and creates submission object.