code: @Override
    protected HttpResponse convertResponse(Envelope response) {
      ByteBuf responseBuffer = Unpooled.buffer();
      try {
        OutputStream outputStream = new ByteBufOutputStream(responseBuffer);
        response.writeTo(outputStream);
        outputStream.flush();
      } catch (IOException e) {
        // Deliberately ignored, as the underlying operation doesn't involve I/O
      }
  
      FullHttpResponse httpResponse = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1,
          HttpResponseStatus.OK, responseBuffer);
      httpResponse.headers().set(HttpHeaders.Names.CONTENT_LENGTH, responseBuffer.readableBytes());
      httpResponse.headers().set(HttpHeaders.Names.CONTENT_TYPE, QuartzProtocol.CONTENT_TYPE);
      return httpResponse;
    }
docs: {@inheritDoc}