public Plugin(String directory, Document document, boolean isDependent) throws DocumentException, EclipseClasspathException {
public Plugin(String directory, boolean isDependent) throws DocumentException, EclipseClasspathException, IOException {
		public Plugin(String directory, Document document, boolean isDependent)				throws DocumentException, EclipseClasspathException {			this.directory = directory;			this.document = document;			this.isDependent = isDependent;			// Get the plugin id			Node plugin = document.selectSingleNode("/plugin");			if (plugin == null)				throw new EclipseClasspathException("No plugin node in plugin descriptor");			if (!plugin.valueOf("@id").equals("")) {				parseOldPluginDescriptor(directory, plugin, isDependent);			} else {				parseNewPluginDescriptor(directory, plugin, isDependent);			}		}