Registry ioRegistry = civQuest.getTopRegistry().getSubRegistry("io");
Ruleset xmlSaveRuleset = ioRegistry.getRuleset("xmlSaveGame");
File file = chooser.getSelectedFile();
DataToSave data = constructDataToSave();
XMLSaveGameWriter writer = new DefaultXMLSaveGameWriter(xmlSaveRuleset);
writer.write(file, data);
} catch (RulesetException ex) {
CivQuest.showErrorQuitDialog("There was an error related to ruleset-loading: ",