// signal appropriate handlers
if (!isDir) {
try {
if (kind == ENTRY_CREATE) {
listener.fileCreated(new FileChangeEvent(child));
}
else if (kind == ENTRY_MODIFY) {
listener.fileChanged(new FileChangeEvent(child));
}
else if (kind == ENTRY_DELETE) {
listener.fileDeleted(new FileChangeEvent(child));
}
} catch (Exception ex) {
LOG.info("Unable to signal source change due to exception: " + ex.getMessage());
}
}