implement batch configuration with XStream