code: public static List<ProvisioningFeatureDefinition> getKernelFeatures(BundleContext ctx, WsLocationAdmin locationService) {
          List<ProvisioningFeatureDefinition> result = kernelDefs;
          if (result == null) {
              result = kernelDefs = getKernelFeatures(ctx, locationService, false);
          }
          return result;
      }
docs: Get the kernel feature definitions in use by the runtime.
  
  Note: the kernel feature does not live in a standard repository location.
  It will never be found while iterating over a collection of resources.
  
  @param ctx
  @param locationService
  @return