public ExternalRemoteServerContext login(String username, String password)
throws LoginException, RemoteException {
ServerContext rootServer = cspokerServer.login(username, password);
RemoteServerContext context = new ExportingServerContext(
new UnremoteServerContext(new AsynchronousServerContext(
new SequencePreservingExecutor(GlobalThreadPool.getInstance()), rootServer)));
try {
UnicastRemoteObject.unexportObject(context, true);
} catch (NoSuchObjectException e) {
// ignore