System.err.println("Optimise native queries: "+dbConfig.optimizeNativeQueries());
System.err.println("Query activation depth: "+dbConfig.activationDepth());
// The database is encrypted.
if(databaseKey != null) {
IoAdapter baseAdapter = dbConfig.io();
try {
dbConfig.io(databaseKey.createEncryptingDb4oAdapter(baseAdapter));
} catch (GlobalOnlyConfigException e) {
// Fouled up after encrypting/decrypting.
System.err.println("Caught "+e+" opening encrypted database.");