BasicNodeSet nodeSet = (BasicNodeSet) getNodeSet();
ArrayList pointers = new ArrayList();
for (int i = 0; i < contexts.length; i++) {
EvalContext ctx = (EvalContext) contexts[i];
while (ctx.nextSet()) {
while (ctx.nextNode()) {
NodePointer ptr = ctx.getCurrentNodePointer();
if (!pointers.contains(ptr)) {
pointers.add(ptr);
}
}