public void generate() throws IOException, SAXException, ProcessingException {
xmlConsumer.startDocument();
if (this.elementName != null) {
xmlConsumer.startElement("", this.elementName, this.elementName, new AttributesImpl());
XMLUtils.valueOf(new IncludeXMLConsumer(xmlConsumer), this.attrObject);
xmlConsumer.endElement("", this.elementName, this.elementName);
} else {
XMLUtils.valueOf(new IncludeXMLConsumer(xmlConsumer), this.attrObject);
}
xmlConsumer.endDocument();
}