public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
LogHelper.subInfo("Syncing '%s' profile", IOHelper.getFileName(file));
ClientProfile profile;
try (BufferedReader reader = IOHelper.newReader(file)) {
profile = new ClientProfile(TextConfigReader.read(reader, true));
<BUG>}
result.add(new SignedObjectHolder<>(profile, privateKey));</BUG>
return super.visitFile(file, attrs);
}
}

public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
LogHelper.subInfo("Syncing '%s' profile", IOHelper.getFileName(file));
ClientProfile profile;
try (BufferedReader reader = IOHelper.newReader(file)) {
profile = new ClientProfile(TextConfigReader.read(reader, true));
}
profile.verify();
result.add(new SignedObjectHolder<>(profile, privateKey));
return super.visitFile(file, attrs);
}
}
