DirWatcher dirWatcher = new DirWatcher(Paths.get(inputDirectory
.getPath()));
do {
Boolean result = dirWatcher.processEvents();
if (Boolean.FALSE.equals(result)) {
Thread.sleep(1000);
} else if (Boolean.TRUE.equals(result)) {
getLog().info("Refreshing");