in taverna-plugin-impl/src/main/java/org/apache/taverna/plugin/impl/PluginManagerImpl.java [339:350]
private Bundle getInstalledBundle(BundleInfo bundleInfo) {
for (Bundle installedBundle : bundleContext.getBundles()) {
if (installedBundle.getSymbolicName().equals(bundleInfo.getSymbolicName())) {
org.osgi.framework.Version installedVersion = installedBundle.getVersion();
if (installedVersion
.equals(new org.osgi.framework.Version(bundleInfo.getVersion()))) {
return installedBundle;
}
}
}
return null;
}