for (IPersistentMap authentication : authentications) {
String database = get(authentication, "database");
String user = get(authentication, "user");
String password = get(authentication, "password");
if (database != null) {
auths.add(new Authentication(database, user, password));
}
}
Settings settings = new Settings();
// TODO make settings configurable from clojure
executor = new SingleNodeDbOperationExecutor(settings, new Server(host, port, auths.toArray(new Authentication[auths.size()])));