final boolean body = fields.contains("Body");
final boolean error = fields.contains("Error");
if (object instanceof Query) {
monitor.query((Query)object, new RequestDataVisitor() {
public void visit(RequestData data, Object... aggregates) {
try {
writeBodyAndError(data, zout, body, error, true);
}
catch (IOException e) {