public Node retire(Instant retiredAt) {
        if (status.wantToRetire() || status.preferToRetire())
            return retire(Agent.system, retiredAt);
        else
            return retire(Agent.application, retiredAt);
    }
Returns a copy of this node which is retired
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java