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;
 }
 private static String[] getValue(BundleDescription bundle, MDEState state) {
   IMonitorModelBase model = MonitorRegistry.findModel(bundle);
   String[] result = null;
   if (model != null) {
     IMonitorLibrary[] libs = model.getMonitorBase().getLibraries();
     result = new String[libs.length];
     for (int i = 0; i < libs.length; i++) {
       result[i] = libs[i].getName();
     }
   } else {
     String[] libs = state.getLibraryNames(bundle.getBundleId());
     result = new String[libs.length];
     for (int i = 0; i < libs.length; i++) {
       result[i] = libs[i];
     }
   }
   if (result.length == 0) return new String[] {"."}; // $NON-NLS-1$
   return result;
 }