code: private void updateList(final File filename) {
          try {
              final URI reletivePath = toURI(filename.getAbsolutePath().substring(new File(normalize(tempDir.toString())).getPath().length() + 1));
              final FileInfo f = job.getOrCreateFileInfo(reletivePath);
              if (hasConref) {
                  f.hasConref = true;
              }
              if (hasKeyref) {
                  f.hasKeyref = true;
              }
              job.write();
          } catch (final RuntimeException e) {
              throw e;
          } catch (final Exception e) {
              logger.error(e.getMessage(), e) ;
          }
      }
docs: Update conref list in job configuration and in conref list file.
  
  @param filename filename