code: public static void saveReport(Report report, OutputStream out) {
  		XStream xstream = XStreamFactory.createXStream();
  		xstream.toXML(report, out);
  	}
docs: Write a report object to an output stream
  
  @param report
  report object
  @param out
  output stream