private synchronized WatchEvent < Path > resolveEventWithCorrectPath ( final WatchKey key , final WatchEvent < Path > event ) { Path correctPath = Paths . get ( pathsByWatchKey . get ( key ) ) ; return new ResolvedPathWatchEvent ( event , correctPath ) ; }
Resolves a watch event with its absolute path .