collection.release();
	public Hashtable getPermissions(User user, String name)			throws EXistException, PermissionDeniedException {		DBBroker broker = null;		try {			broker = brokerPool.get(user);			if (!name.startsWith("/"))				name = '/' + name;			if (!name.startsWith("/db"))				name = "/db" + name;			Collection collection = broker.getCollection(name);			Permission perm = null;			if (collection == null) {				DocumentImpl doc = (DocumentImpl) broker.getDocument(name);				if (doc == null)					throw new EXistException("document or collection " + name							+ " not found");				perm = doc.getPermissions();			} else {				perm = collection.getPermissions();			}			Hashtable result = new Hashtable();			result.put("owner", perm.getOwner());			result.put("group", perm.getOwnerGroup());			result.put("permissions", new Integer(perm.getPermissions()));			return result;		} finally {			brokerPool.release(broker);		}	}