String url = (String) ctx.get(this.urlKey);
if (log.isDebugEnabled()) {
log.debug("connecting to jndi server at " + url);
}
InitialContext iCtx = new InitialContext();
ClientAdapterFactory adapter = new ClientAdapterFactory();
RemoteRepository remote = (RemoteRepository) iCtx.lookup(url);
Repository repo = adapter.getRepository(remote);
CommandHelper.setRepository(ctx, repo, "jndi " + url);
return false;
}