private void writeExistenceTest(BufferedWriter writer) throws IOException {
    generator.writeComment(writer, EXISTENCE_CHECK_COMMENT);
    for (File file : existenceTests) {
      generator.writeExistenceTest(writer, file);
    }
    writer.newLine();
  }
This class is used to automatically generate a restore script for a backup. It keeps a list of
files that were backed up, and a list of files that we should test for to avoid overriding when
we restore the backup.

<p>
It generates either a restore.sh for unix or a restore.bat for windows.
geode-core/src/main/java/org/apache/geode/internal/cache/backup/RestoreScript.java