//////////////////////////////////////////////////////////////////////////////////
public String writeDefinitionXML() {
XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat());
return fmt.outputString(makeDefinitionXML());
}
public void writeDefinitionXML(OutputStream os) throws IOException {
XMLOutputter fmt = new XMLOutputter(Format.getPrettyFormat());
fmt.output(makeDefinitionXML(), os);