ApplicationMetadataFactory factory = getApplicationMetadataFactory();
IDirectory ebaFile = FileSystem.getFSRoot(new File(jarFile.getName()));
IFile applicationManifestFile = ebaFile.getFile(AppConstants.APPLICATION_MF);
Manifest applicationManifest;
if (applicationManifestFile != null) {
InputStream in = applicationManifestFile.open();
try {
applicationManifest = ManifestProcessor.parseManifest(in);
} finally {
try { in.close(); } catch (IOException ignore) {}
}