RequestResource.ZIPFormat zip = new RequestResource.ZIPFormat(
Arrays.asList("id", "path", "startTime", "Error", "Body"), csv, monitor);
Date startTime = new Date();
Throwable throwable = new Throwable();
RequestData data = new RequestData();
data.setId(12345);
data.setPath("/foo");
data.setStartTime(startTime);
data.setBody("<foo></foo>".getBytes());
data.setError(throwable);
ByteArrayOutputStream out = new ByteArrayOutputStream();
zip.toRepresentation(data).write(out);
ZipInputStream zin = new ZipInputStream(new ByteArrayInputStream(out.toByteArray()));