// collection = getCollection("xmldb:xindice-embed:///db/");
CollectionManager service = (CollectionManager) collection.getService("CollectionManager", "1.0");
try{
service.dropCollection(COLLECTION_NAME);
System.out.println("Dropped existing collection with name: " + COLLECTION_NAME);
}
catch (Exception e) {
; // nothing, this may be the first pass.
}