public static BundleInfo pluginAsBundle(URI baseUri, EclipsePlugin plugin) {
BundleInfo b = new BundleInfo(plugin.getId(), plugin.getVersion());
URI uri = baseUri.resolve("plugins/" + plugin.getId() + '_' + plugin.getVersion() + ".jar");
b.addArtifact(new BundleArtifact(false, uri, null));
return b;
}