RemoteServerContext conn = server.login("foobar", "foobar");
SmartClientContext clientContext = new SmartClientContext(conn);
final SmartLobbyContext lobbyContext = clientContext.getLobbyContext(new DefaultLobbyListener());
final PlayerId botId = clientContext.getAccountContext().getPlayerID();
final SingleThreadRequestExecutor executor = SingleThreadRequestExecutor.getInstance();
final TableId tableId = new TableId(0);
bot = botFactory.createBot(botId, tableId, lobbyContext, 200000, executor, new DefaultBotListener() {
@Override
public void onSitOut(SitOutEvent sitOutEvent) {
if(botId.equals(sitOutEvent.getPlayerId())){
logger.info("Sitting in again after "+sitOutEvent);