void (final XmlWriter writer) { writer.startElement("component"); try{ writeId(writer); writeClass(writer); writeBinding(writer); writeConstraints(writer); writeProperties(writer); }finally{ writer.endElement(); // component } }