@Override
	public String toString() {
		String probabilityS = (probability != Double.NEGATIVE_INFINITY) ? "probability=\"" + probability + "\"" : "";
		String result = "\n\t\t\t\t\t<frame name=\"" + StringEscapeUtils.escapeXml(name) + "\" id=\"" + id + "\" " + probabilityS + ">";
		result += "\n\t\t\t\t\t\t<target lemma=\"" + StringEscapeUtils.escapeXml(targetLemma) + "\">";
		for (String targetID : targetIDs) {
			result += "\n\t\t\t\t\t\t\t<fenode idref=\"" + targetID + "\"/>";
		}
		if(!targetLemmaIDref.equals(""))
			result += "\n\t\t\t\t\t\t\t<fenode idref=\"" + targetLemmaIDref + "\" targetLemmaIDref=\"true\"/>";
		result += "\n\t\t\t\t\t\t</target>";

		for(FrameElement frameElement: frameElements.values()){
			result += frameElement;
		}

		result += "\n\t\t\t\t\t</frame>";
		return result;
		//return "\n\t\t Frame [id=" + id + ", name=" + name + ", targetLemma="
		//		+ targetLemma + ", targetIDs=" + targetIDs + ", frameElements="
		//		+ frameElements + "]";
	}