*/
public static NodeIterator referenceToNodeSet(Object obj) {
try {
return (obj instanceof Node == false)
? (NodeIterator) obj
: (NodeIterator) new SingletonIterator(((Node) obj).node);
}
catch (ClassCastException e) {
runTimeTypeError("reference", "node-set");
return null;
}