final String location = String.format("%s/%s", getRepositoryStoreService()
.getBundleRepositoryLocation(), jarFile.getName());
if (logger.isDebugEnabled()) {
logger.debug("Installing Bundle: {}", location);
}
final ContentReader reader = getContentService().getReader(jarFile.getNodeRef(),
ContentModel.PROP_CONTENT);
final Bundle bundle = getFramework().getBundleContext().installBundle(location,
reader.getContentInputStream());
bundles.add(bundle);
} catch (final Exception e) {
logger.warn("Error installing Bundle: {}", e.getMessage(), e);
}
}