/**
   * @param siteId
   * @param path
   * @throws ValidationException
   */
  @PreAuthorize(
      "@tiiltaAuthorization.hasPermission('TemplatingDjango', @userService.getConnected())")
  @RequestMapping(value = "/bender/{siteId:.+}/resource/rescan", method = RequestMethod.POST)
  @ResponseStatus(value = HttpStatus.OK)
  public void scanResources(
      @PathVariable("siteId") String siteId,
      @RequestParam(value = "path", required = false) String path)
      throws ValidationException {

    // récupérer le répertoire à scanner
    Site site = siteService.getSite(siteId);
    if (site == null) {
      throw new ValidationException("Le site est inconnu");
    } else {

      LOGGER.info("Démarrage du scan du siteId : {}, path : {}", site.getId(), path);
      benderService.scanLocalResources(site, path);
      LOGGER.info("Fin du scan du siteId : {}, path : {}", site.getId(), path);
    }
  }