Path dirPath = (Path)key.watchable();
Path fullPath = dirPath.resolve((Path) event.context());
ImportFile importer = new ImportFile();
if (importer.checkExtension(fullPath.toString())) {
importer.setDir(fullPath.toString());
DomainResults result = importer.importFile();
result.saveResult(fullPath.toFile().getName().toString().replace(".dat", ""), dirOut);
}
}
boolean valid = key.reset();
if (!valid) {