} catch (InterruptedException e) {
throw new StLightException(e);
}
// Go through all the events
for (WatchEvent<?> event : key.pollEvents()) {
WatchEvent<Path> pathEvent = (WatchEvent<Path>) event;
// Check the path
Path completePath = pathByKey.get(key).resolve(pathEvent.context());
File completeFile = completePath.toFile();