if (findBundleInFramework(packageAdmin, bundleSymbolicName, bundleVersion) != null) {
continue;
}
// Step 2: See if the bundle is included in the application
BundleInfo bundleInfo = findBundleInfoInApplication(bundleSymbolicName, bundleVersion);
if (bundleInfo == null) {
// Step 3: Lookup bundle location using the resolver
bundleInfo = findBundleInfoUsingResolver(resolver, bundleSymbolicName, bundleVersion);
}
if (bundleInfo == null) {
throw new ManagementException("Cound not find bundles: " + bundleSymbolicName + "_" + bundleVersion);
}
Bundle bundle = _bundleContext.installBundle(bundleInfo.getLocation());
_bundles.put(bundleInfo, bundle);
}
} catch (BundleException be) {
for (Bundle bundle : _bundles.values()) {