private static void shutdown(String adminPass) {
System.out.println("--- Initialization complete. Shutdown embedded database instance ---");
try {
final Collection root = DatabaseManager.getCollection(URI, "admin", adminPass);
final DatabaseInstanceManager manager = (DatabaseInstanceManager)
root.getService("DatabaseInstanceManager", "1.0");
manager.shutdown();
} catch (final XMLDBException e) {
System.err.println("Caught an exception while initializing db: " + e.getMessage());
e.printStackTrace();
}
}