// There should not be two graphs in the same serialization,
// but just in case ....
GraphDocument prior = getGraphDocument(context);
try {
GraphModelReference viewInfo =
(GraphModelReference) unmarshalObject(reader, context);
putGraphDocument(context, viewInfo.getGraph());
context.put(GraphModel.class, viewInfo.getGraph());
Collection<GraphNode> viewNodes = loadGraphNodes(reader, context);
// TODO: Converter for ViewPreferences
ViewPreferences viewPrefs = (ViewPreferences) unmarshalObject(reader, context);