public void setName(final String name) {
getDocumentElement().setAttribute("name", name);
}
protected void setItemValue(final String itemName, final Object value) {
XMLNode node = getDxl().selectSingleNode("//item[@name='" + XMLDocument.escapeXPathValue(itemName) + "']");
if (node == null) {
node = getDxl().selectSingleNode("/*").addChildElement("item");
node.setAttribute("name", itemName);
} else {
node.removeChildren();
}
if (value instanceof Iterable) {
Object first = ((Iterable<?>) value).iterator().next();
XMLNode list = node.addChildElement(first instanceof Number ? "numberlist" : "textlist");
for (Object val : (Iterable<?>) value) {
appendItemValueNode(list, val);
}
} else {