@Override protected void startObject(String name, Attribute... attributes) { try { AttributesImpl attrs = null; if (attributes != null) { attrs = new AttributesImpl(); for (Attribute attr : attributes) { attrs.addAttribute("", "", attr.getName(), "CDATA", String.valueOf(attr.getValue())); } } hd.startElement("", "", name, attrs); } catch (SAXException e) { throw Exceptions.handle(e); } }