XML steps with XStream 
Against my latest blog entry I could not resist externalizing the configuration for the my remote control application. I used
XStream, which enabled me to just dump the current configuration to a file and so easily constructed the necessary XML formats.
I am pretty sure, I will use that toolset at work, too!
Reading the XML into the object again is that simple:
XStream xstream = new XStream(new DomDriver());
xstream.alias("appInteraction", GenericInteraction.class);
xstream.alias("keyAction", KeyAction.class);
xstream.alias("AppControlConfig", AppControlConfig.class);FileReader fr = new FileReader(CONFIG_FILE_NAME);
configuration = (AppControlConfig) xstream.fromXML(fr);
...