public boolean submitEvidence(Evidence evidence, String actionType) {
		boolean flag = false;
		Element evidenceE = (Element) document
				.selectSingleNode("//" + actionType + "[@id='" + evidence.getId() + "']");
		if (evidenceE != null) {
			evidenceE.element("dialogState").setText(evidence.getDialogState());
			// Write to xml
			try {
				XmlUtils.write2Xml(fileName, document);
				flag = true;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
			// Copy to public dialog
			EvidenceDao evidenceDao = new EvidenceDao(publicFileName);
			if (actionType.equals("evidence")) {
				if (evidenceDao.addEvicende(evidence, evidence.getTeamType())) {
					flag = true;
				} else {
					flag = false;
				}
			} else if (actionType.equals("counterevidence")) {
				if (evidenceDao.addCounterEvidence(evidence, evidence.getTeamType())) {
					flag = true;
				} else {
					flag = false;
				}
			} 
		}
		return flag;
	}