WatchDir from oracle's java tutorial