@Override public void run() { if (execution == null || response == null) throw new NullPointerException("Uninitialized freeze listener"); if (channel instanceof LazyContentChannel) ((LazyContentChannel)channel).setHttpResponse(getHttpResponse(response)); // Render if we have a renderer capable of it if (getRenderer() instanceof AsynchronousSectionedRenderer) { ((AsynchronousSectionedRenderer) getRenderer()).renderBeforeHandover(new ContentChannelOutputStream(channel), response, execution, request); } }