@Override
    public String toString() {
        String contextString = "";
        String nameSpaceString = "";
        if (contextName != null && !isDefaultContextName())
            contextString = contextName + "/";
        if (getNameSpace() != null)
            nameSpaceString = getNameSpace() + ".";
        return contextString + nameSpaceString + toInnerString();
    }
All instances of this produces a parseable string output
container-search/src/main/java/com/yahoo/prelude/semantics/rule/Condition.java