code: public void startMonitor() {
          logger.info("Starting Directory Update Monitor");
          try {
              monitor.start();
          } catch (IllegalStateException e) {
              logger.info("File alteration monitor is already started: " + e.getMessage());
          } catch (Exception e) {
              throw new RuntimeException(e.getMessage(), e);
          }
      }
docs: Starts the monitor watching for updates.