private boolean renderTrace() throws IOException { if (getExecution().trace().getTraceLevel() == 0) return false; jsonWriter.beginField("trace"); try { getExecution().trace().traceNode().accept(new TraceRenderingVisitor(jsonWriter)); } catch (WrappedIOException e) { throw e.getCause(); } jsonWriter.endField(); return true; }