xstreamwrapper.zip - I've written a java wrapper class for using XStream in my way. Also here you can find a very simple example which can be used to save and restore application configuration from an .xml conffile.