@Override
    public void data(Data data) {
        Hit hit = (Hit) data;
        boolean renderedSimple = simpleRenderHit(writer, hit);
        if ( ! renderedSimple)
            renderSingularHit(writer, hit);
    }
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/pagetemplates/result/PageTemplatesXmlRenderer.java