public Map<String,String> asContext(List<String> dimensions) {
        Map<String,String> context = new HashMap<>();
        if (dimensions == null) return context;
        for (int i = 0; i < dimensions.size(); i++)
            context.put(dimensions.get(i), get(i));
        return context;
    }
Helper method which uses compareTo to return whether this is most specific
container-search/src/main/java/com/yahoo/search/query/profile/DimensionValues.java