private  void renderResultContent(WRITER writer, Result result) throws IOException {
        if (result.hits().getError() != null || !result.hits().getQuery().errors().isEmpty()) {
            error(writer, asUnmodifiableSearchErrorList(result.hits().getQuery().errors(), result.hits().getError()));
        }

        if (result.getConcreteHitCount() == 0) {
            emptyResult(writer, result);
        }

        if (result.getContext(false) != null) {
            queryContext(writer, result.getContext(false));
        }

        renderHitGroup(writer, result.hits());
    }
Picks apart the result and feeds it to the other methods.
container-search/src/main/java/com/yahoo/search/rendering/SectionedRenderer.java