NodeListImpl result = new NodeListImpl((int) (last - first + 1)); for (long gid = first; gid <= last; gid++) { result.add(objectWith(doc, gid)); } return result; }
return getRange(doc, first, last, -1); }
	public NodeList getRange(final Document doc, final long first, final long last) {		NodeListImpl result = new NodeListImpl((int) (last - first + 1));		for (long gid = first; gid <= last; gid++) {			result.add(objectWith(doc, gid));		}		return result;	}