}
// Add servers from configuration
Iterator<DatabaseServer> servers = getWgaConfiguration().getDatabaseServers().iterator();
while (servers.hasNext()) {
DatabaseServer databaseServer = servers.next();
if (databaseServer.isEnabled()) {
try {
Class serverClass = getLibraryLoader().loadClass(databaseServer.getImplClassName());
WGDatabaseServer server = (WGDatabaseServer) getModuleRegistry().instantiate(serverClass);
server.init(databaseServer.getUid(), databaseServer.getTitle(), databaseServer.getOptions());
newServers.put(server.getUid(), server);
getLog().info("Registering database server '" + server.getTitle(Locale.getDefault()) + "'");
}
catch (Exception e) {
getLog().error("Exception instantiating database server", e);