private static String requireNonEmptyString(String value, String message) {
        Objects.requireNonNull(value, message);
        if (value.trim().isEmpty())
            throw new IllegalArgumentException(message + ", but was '" + value + "'");
        return value;
    }
Returns a copy of this node with the given history.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/Node.java