> Can
> you please help me in defining equals and hashcode method for the wrapper.
This may help (it's the code used for the XQuery operator "is", which
compares the node identity of two nodes for equality):
https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/value/node/DBNode.java#L200-L204