private static Optional<String> requireNonEmptyString(Optional<String> value, String message) {
        Objects.requireNonNull(value, message);
        value.ifPresent(v -> requireNonEmptyString(v, message));
        return value;
    }
Returns a copy of this node with the given history.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java