// get list of events from key
List<WatchEvent<?>> list = signalledKey.pollEvents();
// VERY IMPORTANT! call reset() AFTER pollEvents() to allow the
// key to be reported again by the watch service
signalledKey.reset();
// Retrieve the path for the files from the key created above; this is used by the
// resolver below.
Path dir = keys.get(signalledKey);
try {