code: public void resolveBundles(BundleContext bContext, List<Bundle> bundlesToResolve) {
          if (bundlesToResolve == null || bundlesToResolve.size() == 0) {
              return;
          }
  
          FrameworkWiring wiring = adaptSystemBundle(bContext, FrameworkWiring.class);
          if (wiring != null) {
              ResolutionReportHelper rrh = null;
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                  rrh = new ResolutionReportHelper();
                  rrh.startHelper(bContext);
              }
              try {
                  wiring.resolveBundles(bundlesToResolve);
              } finally {
                  if (rrh != null) {
                      rrh.stopHelper();
                      Tr.debug(this, tc, rrh.getResolutionReportString());
                  }
              }
          }
      }
docs: Utility for resolving bundles
  
  @param bundlesToResolve