for (File file : files) {
String manifestVersion = null;
JarFile jf = null;
try {
Configuration config = new Configuration();
jf = new JarFile(file);
Manifest manifest = jf.getManifest();
if (manifest != null) {
Attributes attributes = manifest.getMainAttributes();
manifestVersion = attributes.getValue(Attributes.Name.IMPLEMENTATION_VERSION);
config.put(new PropertySimple("version", manifestVersion));
config.put(new PropertySimple("title", attributes.getValue(Attributes.Name.IMPLEMENTATION_TITLE)));
config.put(new PropertySimple("url", attributes.getValue(Attributes.Name.IMPLEMENTATION_URL)));
config
.put(new PropertySimple("vendor", attributes.getValue(Attributes.Name.IMPLEMENTATION_VENDOR)));
config.put(new PropertySimple("classpath", attributes.getValue(Attributes.Name.CLASS_PATH)));
config.put(new PropertySimple("sealed", attributes.getValue(Attributes.Name.SEALED)));
}
String sha256 = null;
try {
sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(file);