/** Utility function to begin and end a <code>value</code> tag pair with added attributes. */
private void addValue(String name, String value, Attributes atts)
throws SAXException {
AttributesImpl ai = (atts == null) ? new AttributesImpl() : new AttributesImpl(atts);
ai.addAttribute(NAMESPACE, "name", "name", "CDATA", name);
super.contentHandler.startElement(NAMESPACE, "value", "value", ai);
super.contentHandler.startElement(NAMESPACE, "line", "line", XMLUtils.EMPTY_ATTRIBUTES);
if (value != null) {
super.contentHandler.characters(value.toCharArray(), 0, value.length());