if(coll == null) {
catalog = Collections.emptyMap();
} else {
final String filter = DbCollection.getDocumentFilterExp(unescapedArg);
try {
catalog = coll.listDocuments(filter, true, dynEnv);
} catch (DbException e) {
throw new XQueryException("failed loading collection: " + unescapedArg, e);
}
}
} else {