Created DirectoryWatcher to monitor a directory using Java 7's watch service.