code: @FFDCIgnore(IllegalStateException.class)
      private <T> T adaptSystemBundle(final BundleContext bundleContext,
                                      Class<T> target) {
          try {
              Bundle systemBundle = bundleContext.getBundle(Constants.SYSTEM_BUNDLE_LOCATION);
              if (systemBundle != null)
                  return systemBundle.adapt(target);
          } catch (IllegalStateException e) {
          }
          return null;
      }
docs: Adapt the system bundle to the specified class. Try w/in a catch block
  for IllegalStateException, which will be thrown if the bundle context
  has become invalid (because, for example, the bundle is stopping).
  
  @param bundleContext
  @param target
  @return