code: void commitTempFile(File temp) throws ConfigurationPersistenceException {
          if (!doneBootup.get()) {
              return;
          }
          if (!interactionPolicy.isReadOnly()) {
              FilePersistenceUtils.moveTempFileToMain(temp, mainFile);
          } else {
              FilePersistenceUtils.moveTempFileToMain(temp, lastFile);
          }
      }
docs: Commit the contents of the given temp file to either the main file, or, if we are not persisting
  to the main file, to the .last file in the configuration history
  @param temp temp file containing the latest configuration. Will not be {@code null}
  @throws ConfigurationPersistenceException