@SuppressWarnings("rawtypes")
	public List<Claim> getClaims(String actionType, String team) {
		List<Claim> claimList = new ArrayList<Claim>();
		Element claimE;
		Claim claim;
		if (actionType.equals(CLAIMSUBCLAIM)) {
			List<Claim> claimList1 = getClaims("claim", team);
			List<Claim> subclaimList = getClaims("subclaim", team);
			for (int i = 0; i < claimList1.size(); i++) {
				claimList.add(claimList1.get(i));
			}
			for (int i = 0; i < subclaimList.size(); i++) {
				claimList.add(subclaimList.get(i));
			}
		} else if (team.equals(TEAMAB)) {
			// Public claims, read all claims Team A and Team B
			for (Iterator i = root.elementIterator(actionType); i.hasNext();) {
				claimE = (Element)i.next();
				if (claimE.element("isDeleted").getText().equals("false")) {
					String id = claimE.element("id").getText()
							, title = claimE.element("title").getText()
							, description = claimE.element("description").getText()
							, type = claimE.element("type").getText()
							, timeAdded = claimE.element("timeAdded").getText()
							, name = claimE.element("name").getText()
							, debateId = claimE.element("debateId").getText()
							, dialogType = claimE.elementText("dialogType")
							, parentId = claimE.elementText("parentId")
							, teams = claimE.attributeValue("team");
					claim = new Claim(id, title, description, type
							, timeAdded, parentId, name, debateId, dialogType, teams);
					claimList.add(claim); 
				}
				
			}
		} else {
			for (Iterator i = root.elementIterator(actionType); i.hasNext();) {
				claimE = (Element)i.next();
				if (claimE.element("isDeleted").getText().equals("false")
						&& claimE.attributeValue("team").equals(team)) {
					String id = claimE.element("id").getText()
							, title = claimE.element("title").getText()
							, description = claimE.element("description").getText()
							, type = claimE.element("type").getText()
							, timeAdded = claimE.element("timeAdded").getText()
							, name = claimE.element("name").getText()
							, debateId = claimE.element("debateId").getText()
							, dialogType = claimE.elementText("dialogType")
							, parentId = claimE.elementText("parentId")
							, teams = claimE.attributeValue("team");
					claim = new Claim(id, title, description, type
							, timeAdded, parentId, name, debateId, dialogType, teams);
					claimList.add(claim); 
				}
				
			}
		}
		
		return claimList;
	}