if (list == null) { return null; }
	public Vector getInstalledBundles()	{		String list[] = bundleRootDir.list();		int len = list.length;		Vector bundleDatas = new Vector(len << 1, 10);		/* create bundle objects for all installed bundles. */		for (int i = 0; i < len; i++)		{			try			{				DefaultBundleData data;				try				{					data = (DefaultBundleData)getElementFactory().getBundleData(this);					data.initializeExistingBundle(list[i]);				}				catch (NumberFormatException e)				{					continue; /* the directory is not a bundle id */				}				if (Debug.DEBUG && Debug.DEBUG_GENERAL)				{					Debug.println("BundleData created: " + data);				}				bundleDatas.addElement(data);			}			catch (IOException e)			{				if (Debug.DEBUG && Debug.DEBUG_GENERAL)				{					Debug.println("Unable to open Bundle[" + list[i] + "]: " + e.getMessage());					Debug.printStackTrace(e);				}			}		}		return (bundleDatas);	}