21922193219421952196219721982199220022012202
try { if (config.isLazyConnecting()) { db = server.prepareDatabase(typeClass, dbOptions); } else { db = server.openDatabase(typeClass, dbOptions); } } catch (Throwable e1) { String message = "Could not open database for key " + strKey.toLowerCase(); log.error(message, e1);
25382539254025412542254325442545254625472548
try { if (config.isLazyConnecting()) { db = server.prepareDatabase(typeClass, dbOptions); } else { db = server.openDatabase(typeClass, dbOptions); } } catch (WGAPIException e) { getLog().error("Could not connect to database: " + e.getMessage()); }