// TODO: Remove this method, and add a method save() instead. (When we do that, we
// should remove the saveUiState method from ManagedProject.) The implementation
// class is passed an InterchangeXmlSaver (or maybe rather a ProjectPersistor),
// so it can save itself.
public String getXml() {
XmlStringBuilder builder = new XmlStringBuilder();
builder.addElement(XmlConstants.Elements.UI_STATE);
if (displayOnStartUp != null) {
appendOpenPagesXml(builder);
}
if (expandedOnStartUp != null) {
appendExpandedNodesXml(builder);
}
builder.closeElement();
return builder.getXml();
}