void (final XmlWriter writer) { writer.startElement("constraints"); try { if (getParent() != null) { getParent().getLayoutManager().writeChildConstraints(writer, this); } } finally { writer.endElement(); // constraints } }