private QueryProfile lookupParentExact(CompoundName name, boolean create, DimensionBinding dimensionBinding) {
        CompoundName rest = name.rest();
        if (rest.isEmpty()) return this;

        QueryProfile topmostParent = getQueryProfileExact(name.first(), create, dimensionBinding);
        if (topmostParent == null) return null;
        return topmostParent.lookupParentExact(rest, create, dimensionBinding.createFor(topmostParent.getDimensions()));
    }
Looks up and, if necessary, creates, the query profile which should hold the given local name portion of the
given name. If the name contains no dots, this is returned.

@param name the name of the variable to lookup the parent of
@param create whether or not to create the parent if it is not present
@return the parent, or null if not present and created is false
container-search/src/main/java/com/yahoo/search/query/profile/QueryProfile.java