System.out.println("### setUnsetFields:obj instanceof String: " + text);
System.out.println("### setUnsetFields:obj instanceof Text: " + text);
	public void setUnsetFields(Map fieldValues) {		StringBuffer merged = new StringBuffer();		try {			XMLParser parser = new XMLParser();			//TODO: (roar) remove dbg code:			System.out.println("### setUnsetFields:getText(): " + getText());			XMLDocument document = parser.parse(new StringReader("<dummy>" + getText() + "</dummy>"));			XMLElement root = document.getRootElement();			Iterator it = root.getContent().iterator();			while (it.hasNext()) {				Object obj = it.next();				if (obj instanceof XMLElement) {					String name = ((XMLElement)obj).getName();					String value = (String)fieldValues.get(name);					System.out.println("name: " + name + " value: " + value);					merged.append(value != null ? value : "<" + name + "/>");				}				//				else if (obj instanceof XMLCDATA) { ignore	}				else if (obj instanceof Text) {					String text = ((Text)obj).getText();				//				else if (obj instanceof String) {//					//TODO: (roar) remove dbg code:					System.out.println("### setUnsetFields:obj instanceof String: " + text);									merged.append(text);				}				//TODO: (roar) remove dbg code:				System.out.println("### setUnsetFields:merged: " + merged.toString());									setText(merged.toString());				store();			}		} catch (XMLException ex) {			ex.printStackTrace();		}	}