private Bundle getBundle(long bundleId) {
   Bundle bundle = bundleContext.getBundle(bundleId);
   if (bundle == null || !motechBundleFilter.passesCriteria(bundle)) {
     throw new BundleNotFoundException("Bundle with id [" + bundleId + "] not found");
   }
   return bundle;
 }
  @Override
  public List<BundleInformation> getBundles() {
    List<BundleInformation> bundles = new ArrayList<>();

    List<Bundle> motechBundles = motechBundleFilter.filter(bundleContext.getBundles());

    for (Bundle bundle : motechBundles) {
      bundles.add(new BundleInformation(bundle));
    }

    return bundles;
  }