docs: private static BundleContext getBundleContext(final Bundle bundle) {
          if (System.getSecurityManager() == null)
              return bundle.getBundleContext();
          else
              return AccessController.doPrivileged(new PrivilegedAction<BundleContext>() {
                  @Override
                  public BundleContext run() {
                      return bundle.getBundleContext();
                  }
              });
      }