if (discoveredFiles != null) {
for (File file : discoveredFiles) {
String shortName = file.getName();
String sha256 = null;
try {
sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(file);
} catch (Exception e) {
if (log.isDebugEnabled()) {
log.debug("Failed to generate sha256 for [" + file + "]");
}
}