public static HashMap getBundleClasspaths(MDEState state) {
   HashMap properties = new HashMap();
   BundleDescription[] bundles = state.getState().getBundles();
   for (int i = 0; i < bundles.length; i++) {
     properties.put(new Long(bundles[i].getBundleId()), getValue(bundles[i], state));
   }
   return properties;
 }
 public static Map getPatchMap(MDEState state) {
   HashMap properties = new HashMap();
   IMonitorModelBase[] models = MonitorRegistry.getActiveModels();
   for (int i = 0; i < models.length; i++) {
     BundleDescription desc = models[i].getBundleDescription();
     if (desc == null) continue;
     Long id = new Long(desc.getBundleId());
     if (ClasspathUtilCore.hasExtensibleAPI(models[i])) {
       properties.put(id, ICoreConstants.EXTENSIBLE_API + ": true"); // $NON-NLS-1$
     } else if (ClasspathUtilCore.isPatchFragment(models[i])) {
       properties.put(id, ICoreConstants.PATCH_FRAGMENT + ": true"); // $NON-NLS-1$
     }
   }
   return properties;
 }