@Override
    public boolean equals(Object o) {
        if (! (o instanceof LeafNode<?> other)) return false;

        return value == null ? other.value == null :  value().equals(other.value);
    }
This method is meant for internal use in the configuration
system. Overrides Object.clone().

@return a new instance similar to this object.
config-lib/src/main/java/com/yahoo/config/LeafNode.java