docs: @Bean(preDestroy = "close")
      @Prototype
      @Requires(classes = {MacOSXListeningWatchService.class, Library.class})
      @Requires(property = FileWatchConfiguration.ENABLED, value = StringUtils.TRUE, defaultValue = StringUtils.TRUE)
      @Requires(property = FileWatchConfiguration.PATHS)
      @Primary
      protected WatchService macWatchService() throws IOException {
          try {
              return new MacOSXListeningWatchService();
          } catch (Exception e) {
              if (LOG.isWarnEnabled()) {
                  LOG.warn("Unable to create Mac OS X specific watch service. Falling back to default polling strategy: " + e.getMessage(), e);
              }
              return new WatchServiceFactory().watchService();
          }
      }