Return true if the two nodes are equals with the meaning:
two null nodes are equals
two non null nodes are equals if
the are originated from the same session
they have the same id when they are referenceable otherwise they have the same path
Returns true if one of the following conditions is satisfied:
o1 and o2 are both null
o1 and o2 are not null and the invocation of the equals method on o1 with o2 as argument returns true
In case of a list addition the index indicates the value that would be returned by
a call to the ListIterator.nextIndex() when the element is inserted
in the list.