private static List<String> requireNonEmpty(List<String> values, String message) {
        if (values == null || values.isEmpty())
            throw new IllegalArgumentException(message);
        return values;
    }
Returns a copy of this node with the given history.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java