try {
cspokerServer = (ExternalRemoteCSPokerServer) registry.lookup("CSPokerServer");
} catch (NotBoundException exception) {
throw new RemoteException("CSPokerServer not found in registry.", exception);
}
ExternalRemoteServerContext context = cspokerServer.login(username, password);
return new ServerContextStub(context);
}