protected void register(Path path) {
try {
WatchKey key = path.register(fsWatchService, StandardWatchEventKinds.ENTRY_CREATE, StandardWatchEventKinds.ENTRY_DELETE, StandardWatchEventKinds.ENTRY_MODIFY);
pathByKey.put(key, path);
} catch (IOException e) {
throw new StLightException(e);
}
}