}
BundleDescription desc = new BundleDescription(mf);
ResourceBuilder builder = new ResourceBuilder(desc);
Resource resource = null;
try {
resource = builder.createResource();
} catch (RuntimeException e) {
LOG.debug("Failed to generate OBR information for " + artifact + " artifact", e);
continue;
}
if (resource != null) {
resource.setUri(getURL(artifact));
if (location.isFile()) {
resource.setSize(location.length());
}
repo.getResource().add(resource);
} else {
LOG.debug("Did not generate OBR information for {} artifact. It is not a bundle.", artifact);
}