@SuppressWarnings("unused")
	public Debate getSpecificDebate(String id) {
		Element root = document.getRootElement();
		Element debateElement;
		Debate debate = null;
		Element debateE = (Element) document
				.selectSingleNode("//debate[@id='" + id + "']");
		
		if (debateE != null) {
			String topic = debateE.element("topic").getText()
					, description = debateE.element("description").getText()
					, maxTurns = debateE.element("maxTurns").getText()
					, turnDuration = debateE.element("turnDuration").getText()
					, maxTime = debateE.element("maxTime").getText()
					, timeLeft = debateE.element("timeLeft").getText()
					, materials = debateE.element("materials").getText()
					, status = debateE.element("status").getText()
					, isDeleted = debateE.element("isDeleted").getText()
					, memberA = debateE.element("memberA").getText()
					, memberB = debateE.element("memberB").getText()
					, winner = debateE.element("winner").getText()
					, teamALeader = debateE.element("teamALeader").getText()
					, teamBLeader = debateE.element("teamBLeader").getText()
					, teamARep = debateE.element("teamARep").getText()
					, teamBRep = debateE.element("teamBRep").getText()
					, currentTurnTeam = debateE.element("currentTurnTeam").getText()
					, acceptPositionTeam = debateE.element("acceptPositionTeam").getText();
			String[] teamA = memberA.split(",");
			String[] teamB = memberB.split(",");
			String[][] team;
			if (teamA.length > teamB.length) {
				team = new String[2][teamA.length];
			} else {
				team = new String[2][teamB.length];
			}
			for (int j = 0; j < teamA.length; j++) {
				team[0][j] = teamA[j];
			}
			for (int j = 0; j < teamB.length; j++) {
				team[1][j] = teamB[j];
			}
			int maxTurnsValue = 0;
			if (maxTurns != null) {
				maxTurnsValue = Integer.parseInt(maxTurns);
			}
			boolean isDeleteValue = false;
			if (isDeleted != null) {
				if (isDeleted.equals("true")) {
					isDeleteValue = true;
				}
			}
			int turnLeft = 0;
			if (turnDuration != null) {
				turnLeft = Integer.parseInt(turnDuration);
			}
			String[] teamLeader = {teamALeader, teamBLeader}
						, teamRep = {teamARep, teamBRep};
			debate = new Debate(id, maxTurnsValue, topic, description, team, winner
					, maxTime, materials, teamLeader, teamRep, isDeleteValue, currentTurnTeam
					, status, turnLeft, timeLeft);
		}
		return debate;
	}