XmldbURI childName = i.next();
if (childName.equals("system"))
continue;
Collection childColl = broker.getOrCreateCollection(transaction, XmldbURI.ROOT_COLLECTION_URI.append(childName));
assertNotNull(childColl);
broker.removeCollection(transaction, childColl);
}
// Remove /db/system/config/db and all collection configurations with it
Collection config = broker.getOrCreateCollection(transaction,
XmldbURI.create(XmldbURI.CONFIG_COLLECTION + "/db"));