this.brokerPool = pool; this.user = user;
if(val.getLength() == 0) return; if(Type.subTypeOf(val.getItemType(), Type.NODE) && sortExpr != null) { SortedNodeSet sorted = new SortedNodeSet(brokerPool, user, sortExpr); try { sorted.addAll(val); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.INVALID_RESOURCE, e.getMessage(), e); } val = sorted; } Item item; for(SequenceIterator i = val.iterate(); i.hasNext(); ) { item = i.nextItem(); resources.add(item); }
	public LocalResourceSet(User user, BrokerPool pool, LocalCollection col) {		this.collection = col;		this.brokerPool = pool;		this.user = user;	}