List workList = new LinkedList<String>();
File pluginDir = new File(eclipseDir, "plugins"); File[] dirList = pluginDir.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirectory(); } }); if (dirList == null) throw new EclipseClasspathException("Could not list plugins in directory " + pluginDir); for (int i = 0; i < dirList.length; ++i) { String pluginId = getPluginId(dirList[i].getName()); if (pluginId != null) {  pluginDirectoryMap.put(pluginId, dirList[i]); } }  Map<String, Plugin> requiredPluginMap = new HashMap<String, Plugin>();  LinkedList<String> workList = new LinkedList<String>();
	public EclipseClasspath execute() throws DocumentException, MalformedURLException {		Map<String, Plugin> pluginMap = new HashMap<String, Plugin>();		List workList = new LinkedList<String>();		workList.add(pluginFile);		while (!workList.isEmpty()) {			// Read the plugin file			SAXReader reader = new SAXReader();			Document doc = reader.read(new URL("file:" + pluginFile));			// Add to the map			Plugin plugin = new Plugin(doc);			pluginMap.put(plugin.getId(), plugin);		}		return this;	}