code: public static List<BundleModel> bundles(BundleContext context) {
          List<BundleModel> bundles = new ArrayList<>();
          for (Bundle bundle : context.getBundles()) {
              bundles.add(new BundleModel(bundle));
          }
          return bundles;
      }
docs: Creates the list of bundle models based on the bundle currently deployed.
  
  @param context the bundle context.
  @return the list of models