AttributesImpl attrs = new AttributesImpl();
attrs.addAttribute("", "result", "result", "CDATA", "ok");
if (target != null)
attrs.addAttribute("", "target", "target", "CDATA", target);
builder.startElement(STATUS_ELEMENT, attrs);
builder.endElement();
return builder.getDocument().getNode(1);
} finally {
context.popDocumentContext();
}