public RemoteHoldemPlayerContext sitIn(SeatId seatId, int amount,
HoldemPlayerListener holdemPlayerListener) throws RemoteException,
IllegalActionException {
if(playerContext.compareAndSet(null, new XmlRemoteHoldemPlayerContext(performer,generator,tableID, stalePlayerContextTrigger))){
serverListenerTree.getLobbyListenerTree().getHoldemTableListenerTree(tableID).setHoldemPlayerListener(holdemPlayerListener);
performer.perform(new SitInAction(generator.getNextID(),tableID,seatId,amount));
return playerContext.get();
}
throw new IllegalActionException("Already seated at table #"+tableID+".");
}