private void addDirNode(final Element root, final File dir)
	{
		final Element dirnode = new Element("Directory");

		root.addContent(dirnode);

		dirnode.setAttribute("name", dir.getName());

		final File[] list = dir.listFiles();

		for (final File f : list) {
			if (f.isFile() && f.exists()) {
				this.progressModel
						.setMaximum(this.progressModel.getMaximum() + 1);
				this.addFileNode(dirnode, f);
			} else if (f.isDirectory()) {
				this.progressModel
						.setMaximum(this.progressModel.getMaximum() + 1);
				this.addDirNode(dirnode, f);
			}
		}

		this.progressModel.setValue(this.progressModel.getValue() + 1);
	}