// put it into context
getContext().getAttributes().put(JSON_XSTREAM, xstream);
// create and configure XStream for XML
xstream = createAndConfigureXstream(new LookAheadXppDriver());
// put it into context
getContext().getAttributes().put(XML_XSTREAM, xstream);
// put fileItemFactory into context