docs: protected void waitForActiveJobsAndSubJobsToStop() {
  
          // Don't wait if nothing to wait for...
          if (executingSubWorkUnits.isEmpty() && executingJobs.isEmpty()) {
              return;
          }
  
          try {
              // Hard-coded 2 seconds, until we have a config property
              Thread.sleep(2 * 1000);
          } catch (InterruptedException ie) {
              // Let it interrupt
          }
  
          if (!executingJobs.isEmpty()) {
              logger.log(Level.INFO, "jobs.running.at.shutdown", executingJobs.keySet());
          }
  
          if (!executingSubWorkUnits.isEmpty()) {
  
              logger.fine("The following job executions were still running at the time of deactivation: " + executingSubWorkUnits.keySet().toString());
          }
      }