public QueryContext getContext(boolean create) {
        if (context == null && create)
            context = new QueryContext(getTraceLevel(),this);
        return context;
    }
Returns the context of this query, possibly creating it if missing. Returns the context, or null
container-search/src/main/java/com/yahoo/search/Query.java