@Override
    public ContentChannel handleResponse(Response jdiscResponse) {
        Objects.requireNonNull(jdiscResponse, "Response is null");
        synchronized (monitor) {
            // If response is already committed, return a no-op content channel
            if (jettyResponse.isCommitted()) return ContentChannels.noop();
            // Multiple invocations of handleResponse() are allowed
            if (contentChannel != null) {
                // Invalidate previous content channel to prevent concurrent writes
                contentChannel.invalidated = true;
            }
            this.jdiscResponse = jdiscResponse;
            contentChannel = new ResponseContentChannel();
            return contentChannel;
        }
    }
A {@link ResponseHandler} that writes the response to Jetty ({@link org.eclipse.jetty.server.Response}).

@author bjorncs
container-core/src/main/java/com/yahoo/jdisc/http/server/jetty/JettyResponseWriter.java