public Query getParentQuery() {
        if (chained() == null) {
            throw new RuntimeException("getParentQuery should only be called on a properties instance accessible as query.properties()");
        } else {
            return chained().getParentQuery();
        }
    }
Returns the query owning this property object.
Only guaranteed to work if this instance is accessible as query.properties()
container-search/src/main/java/com/yahoo/search/query/Properties.java