*/
private HashMap<String, Object> getCollectionDesc(final XmldbURI rootUri) throws Exception {
final DBBroker broker = factory.getBrokerPool().get(user);
Collection collection = null;
try {
collection = broker.openCollection(rootUri, Lock.READ_LOCK);
if (collection == null) {
throw new EXistException("collection " + rootUri + " not found!");
}
final HashMap<String, Object> desc = new HashMap<String, Object>();
final Vector<Map<String, Object>> docs = new Vector<Map<String, Object>>();