code: private void waitForReportXml() {
          String waitTime = env.getRequiredSymbol("reportXmlWait");
          long waitDuration = Long.parseLong(waitTime);
          try {
              Thread.sleep(waitDuration);
          } catch (InterruptedException e) {
              throw new RuntimeException("Waiting for report XML interrupted", e);
          }
      }
docs: Waits for report XML to br created (which may take a while).