@Override
    public void data(Data data) throws IOException {
        Hit hit = (Hit) data;
        boolean renderedSimple = simpleRenderHit(writer, hit);
        if (renderedSimple) return;

        renderSingularHit(writer, hit);
        writer.closeTag();
    }
Returns the encoding of the query, or the encoding given by the template if none is set
container-search/src/main/java/com/yahoo/search/rendering/XmlRenderer.java