*/
@Override
public void marshal(Object source, HierarchicalStreamWriter writer,
MarshallingContext context) {
ViewDocument viewInfo = (ViewDocument) source;
Components components = viewInfo.getComponents();
// Save all node references.
marshalObject(components.getParentGraph(), writer, context);
// Save all node references.
marshallNodes(components.getViewNodes(), VIEW_NODES, writer, context);
// Save the preferences.
marshalObject(components.getUserPrefs(), writer, context);
}