if (targetContribution != null) {
// Find a matching contribution export
for (Export export : targetContribution.getExports()) {
if (export instanceof JavaExport) {
JavaExport javaExport = (JavaExport)export;
if (packageName.equals(javaExport.getPackage())) {
if (osgiRuntime.findBundle(targetContribution.getLocation()) == null)
bundlesToInstall.add(targetContribution);
initialized = true;