code: private Set<String> uninstallInstalleeBundles(Set<String> installeeBundleLocationsToUninstall) {
          Set<String> unsuccessfulUninstallLocations = new HashSet<String>();
          for (String installeeBundleLocation : installeeBundleLocationsToUninstall) {
              Bundle installeeBundleToUninstall = ctx.getBundle(installeeBundleLocation);
              if (installeeBundleToUninstall != null) {
                  try {
                      installeeBundleToUninstall.uninstall();
                  } catch (BundleException e) {
                      //this will auto FFDC
                      //uninstall failed, track it
                      unsuccessfulUninstallLocations.add(installeeBundleLocation);
                      //we couldn't uninstall the bundle, but we want to stop it starting
                      //set the bundle start level to MAX_INT
                      BundleStartLevel bsl = installeeBundleToUninstall.adapt(BundleStartLevel.class);
                      bsl.setStartLevel(Integer.MAX_VALUE);
                  }
              }
          }
          return unsuccessfulUninstallLocations;
      }
docs: Iterates a set of installee bundles attempting to uninstall them.
  
  @param installeeBundleLocationsToUninstall
  @return Set of bundle locations that could not be uninstalled