* Constructs the persister and underlying xstream specifying the stream driver explicitly.
*/
protected XStreamPersister(HierarchicalStreamDriver streamDriver) {
//control the order in which fields are sorted
SortableFieldKeySorter sorter = new SortableFieldKeySorter();
sorter.registerFieldOrder( CatalogImpl.class, new String[]{ "workspaces", "namespaces", "stores", "styles",
/* these we actually omit, but the sorter needs them specified */
"layerGroups", "resources", "maps", "listeners", "layers", "resourcePool", "resourceLoader", "LOGGER" } );
ReflectionProvider reflectionProvider = new CustomReflectionProvider( new FieldDictionary( sorter ) );
//new Sun14ReflectionProvider( new FieldDictionary( sorter ) );