private Writer createWriter(OutputStream stream,Result result) {
        Charset cs = Charset.forName(getCharacterEncoding(result));
        CharsetEncoder encoder = cs.newEncoder();
        return new ByteWriter(stream, encoder);
    }
Renders the result to the writer.
container-search/src/main/java/com/yahoo/search/rendering/Renderer.java