// Get a Collection reference to pass on to individual commands
String colstring = normalizeCollectionURI( (String)table.get(XMLTools.COLLECTION),
(String) table.get(XMLTools.LOCAL) );
col = DatabaseManager.getCollection( colstring );
DatabaseInstanceManager man = (DatabaseInstanceManager)col.getService("DatabaseInstanceManager",XMLDBAPIVERSION);
// Shutdown the server
man.shutdown();
} finally {
if ( col != null ) {
col.close();
}