// suppress duplicates, we only need to check against the last entry
// in each nodeset. We use nodes.nextNode after each entry so we can
// easily compare node against the current node.
if (nodes.getCurrentNode() != node) {
nodes.mutableNodeset().addNode(node);
nodes.nextNode();
}
}
}
}