@Override
    public int compareTo(Reference o) {
        return this.toString().compareTo(o.toString());
    }
If the arguments of this contains a single argument which is an identifier, it is returned.
Otherwise null is returned.
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/Reference.java