private void saveImageFromXML(Match documentRoot) {
		if (documentRoot.attr("image") != null) {
			File filePath = new File(documentRoot.attr("image"));

			// Verifica daca path-ul este absolut.
			if (filePath.isAbsolute()) {
				this.imagePath = filePath.getAbsolutePath();
			} else {
				this.imagePath = (new File(this.xmlPath)).getParent() + "\\"
						+ documentRoot.attr("image");
			}
		}

		if (documentRoot.attr("direction") != null) {
			switch (documentRoot.attr("direction")) {
			case "ascending":
				this.direction = Direction.ASCENDING;
				break;

			case "descending":
				this.direction = Direction.DESCENDING;
				break;
			}
		}
	}