code: @Override
      public Object addingBundle(Bundle bundle, BundleEvent event) {
          // Packages become available on resolution, so take that as the state we care about
  
          //ignore gateway bundles
          if (!isGateway(bundle)) {
              /*
               * Make sure privatePackages isn't null.
               * If new bundles arrive while we're still populating our package list, we'll go through all bundles twice,
               * but at least we'll be correct.
               */
              BundlePackages bp = populatePackageLists();
              harvestPackageList(bp, bundle);
          }
          return null;
      }
docs: /*
  (non-Javadoc)
  
  @see org.osgi.util.tracker.BundleTrackerCustomizer#addingBundle(org.osgi.framework.Bundle, org.osgi.framework.BundleEvent)