private void getId(NodeSet result, DocumentSet docs, QName id) { DBBroker broker = null; try { broker = pool.get(); NodeSet attribs = (NodeSet) broker.findElementsByTagName(docs, id); LOG.debug("found " + attribs.getLength() + " attributes for id " + id); NodeProxy n, p; for (Iterator i = attribs.iterator(); i.hasNext();) { n = (NodeProxy) i.next(); p = new NodeProxy(n.doc, XMLUtil.getParentId(n.doc, n.gid)); result.add(p); } } catch (EXistException e) { LOG.warn("error getting ID values", e); } finally { pool.release(broker);
private void getId( StaticContext context, NodeSet result, DocumentSet docs, QName id) { NodeSet attribs = (NodeSet) context.getBroker().findElementsByTagName(docs, id); LOG.debug("found " + attribs.getLength() + " attributes for id " + id); NodeProxy n, p; for (Iterator i = attribs.iterator(); i.hasNext();) { n = (NodeProxy) i.next(); p = new NodeProxy(n.doc, XMLUtil.getParentId(n.doc, n.gid)); result.add(p);
	private void getId(NodeSet result, DocumentSet docs, QName id) {		DBBroker broker = null;		try {			broker = pool.get();			NodeSet attribs = (NodeSet) broker.findElementsByTagName(docs, id);			LOG.debug("found " + attribs.getLength() + " attributes for id " + id);			NodeProxy n, p;			for (Iterator i = attribs.iterator(); i.hasNext();) {				n = (NodeProxy) i.next();				p = new NodeProxy(n.doc, XMLUtil.getParentId(n.doc, n.gid));				result.add(p);			}		} catch (EXistException e) {			LOG.warn("error getting ID values", e);		} finally {			pool.release(broker);		}	}