private Bundle findMatchingBundle(JarInformation jarInformation) {
   Bundle result = null;
   for (Bundle bundle : bundleContext.getBundles()) {
     final String symbolicName = bundle.getSymbolicName();
     if (symbolicName != null
         && symbolicName.equals(jarInformation.getBundleSymbolicName())
         && bundle
             .getHeaders()
             .get(JarInformation.BUNDLE_VERSION)
             .equals(jarInformation.getBundleVersion())) {
       result = bundle;
       break;
     }
   }
   return result;
 }