NodeInterface::getNodeNames only says Iterator, we should not assume that it is an ArrayIterator. i guess we should move that up and use getArrayCopy if instanceof ArrayIterator, otherwise iterate to generate the array.