public ReferenceNode setOutput(String output) {
        return new ReferenceNode(reference.withOutput(output));
    }
Returns a copy of this node with a modified output
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/ReferenceNode.java