private void renderHit(WRITER writer, Hit hit) throws IOException {
        if (hit instanceof  HitGroup) {
            renderHitGroup(writer, (HitGroup) hit);
        } else if (hit instanceof ErrorHit) {
            errorHit(writer, (ErrorHit) hit);
        } else {
            hit(writer, hit);
        }
    }
Picks apart the result and feeds it to the other methods.
container-search/src/main/java/com/yahoo/search/rendering/SectionedRenderer.java