Close stream quietly.
Use correct XStream instance to add alias.
Introduce constants and reformat text.