ScriptEngine engine = manager.getEngineByExtension(langExt);
DbRepositoryProxy proxy = new DbRepositoryProxy(baseUrl, accesskey);
try {
List<String> names = proxy.getDbNames();
reader.printString("DovetailDB at "+baseUrl+" is alive, databases are: "+names+"\n");
reader.printString("Entering "+langExt+" interpreter with \"repo\" proxy defined. Ctrl-D to exit.\n");
} catch(Exception e) {
error("Could not communicate with DovetailDB at "+baseUrl+": "+e);
}
Bindings bindings = engine.createBindings();
bindings.put("repo", proxy);