analyzer.setExportPackage("*");
analyzer.analyze();
final Manifest manifest = analyzer.calcManifest();
analyzer.getJar().setManifest(manifest);
final File wrappedTempFile = File.createTempFile("wrapped", ".jar");
analyzer.save(wrappedTempFile, true);
return wrappedTempFile;
} catch (Exception e) {
logger.warn(String.format("Failed to wrap plain %s jar using bnd.", tempFile), e);
return null;
}