broker.scanIndexedElements(user, collection, inclusive);
broker.scanIndexedElements(collection, inclusive);
	public Vector getIndexedElements(		User user,		String collectionName,		boolean inclusive)		throws EXistException, PermissionDeniedException {		DBBroker broker = null;		try {			broker = brokerPool.get();			Collection collection = broker.getCollection(collectionName);			if (collection == null)				throw new EXistException(					"collection " + collectionName + " not found");			Occurrences occurrences[] =				broker.scanIndexedElements(user, collection, inclusive);			Vector result = new Vector(occurrences.length);			Vector temp;			for (int i = 0; i < occurrences.length; i++) {				temp = new Vector(2);				temp.addElement(occurrences[i].getTerm());				temp.addElement(new Integer(occurrences[i].getOccurrences()));				result.addElement(temp);			}			return result;		} finally {			brokerPool.release(broker);		}	}