String[] prefsBundles = prefBundles.keys();   for (int i = 0; i < prefsBundles.length; i++) { if (!bundleQualifiers.contains(prefsBundles[i])) { removePrefs(prefsBundles[i]); } }  } catch (BackingStoreException e) {
	public OSGiPreferencesServiceManager(BundleContext context) {		prefsDir = context.getDataFile(OSGI_PREFS_DIR);		context.addBundleListener(this);		//clean up prefs for bundles that have been uninstalled		Bundle[] allBundles = context.getBundles();		Set bundleDirNames = new TreeSet();		for (int i = 0; i < allBundles.length; i++) {			bundleDirNames.add(getBundleDirName(allBundles[i]));		}		File[] prefsNodeDirs = prefsDir.listFiles();		prefsNodeDirs = prefsNodeDirs == null ? new File[0] : prefsNodeDirs;		for (int i = 0; i < prefsNodeDirs.length; i++) {			if (!bundleDirNames.contains(prefsNodeDirs[i].getName())) {				rmdir(prefsNodeDirs[i]);			}		}	}