broker = pool.get();
broker = pool.get(user);
	public Permission[] listCollectionPermissions() throws XMLDBException {		if (!collection.collection.getPermissions().validate(user, Permission.READ))			return new Permission[0];		Permission perms[] = new Permission[collection.collection.getChildCollectionCount()];		DBBroker broker = null;		try {			broker = pool.get();			String child;			org.exist.collections.Collection childColl;			int j = 0;			for (Iterator i = collection.collection.collectionIterator(); i.hasNext(); j++) {				child = (String) i.next();				childColl = broker.getCollection(collection.getPath() + '/' + child);				perms[j] = childColl.getPermissions();			}			return perms;		} catch (EXistException e) {			throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e);		} finally {			pool.release(broker);		}	}