code: private void doAutoSleep() {
          if (autoSleep > 0) {
              log.info("Sleeping " + autoSleep + " milliseconds");
  
              try {
                  Thread.sleep(autoSleep);
              } catch (InterruptedException e) {
                  log.error("Error during doc generation", e);
              }
  
              log.info("Returning after " + autoSleep + " milliseconds");
          }
      }
docs: Sleep amount of time in between iterations.