protected void handleUnexamineOnSendMessage(String message){
  if (StringUtils.isBlank(message)) {
    return;
  }
  String firstWord=message.split(" ")[0];
  if (StringUtils.equalsIgnoreCase(firstWord,"getgame") || StringUtils.equalsIgnoreCase(firstWord,"examine") || StringUtils.equalsIgnoreCase(firstWord,"$$examine")|| StringUtils.equalsIgnoreCase(firstWord,"examin")|| StringUtils.equalsIgnoreCase(firstWord,"exami")|| StringUtils.equalsIgnoreCase(firstWord,"exam")|| StringUtils.equalsIgnoreCase(firstWord,"exa")|| StringUtils.equalsIgnoreCase(firstWord,"ex")|| StringUtils.equalsIgnoreCase(firstWord,"play")|| StringUtils.equalsIgnoreCase(firstWord,"seek")|| StringUtils.equalsIgnoreCase(firstWord,"match")|| StringUtils.equalsIgnoreCase(firstWord,"matc")|| StringUtils.equalsIgnoreCase(firstWord,"mat")|| StringUtils.equalsIgnoreCase(firstWord,"ma")|| StringUtils.equalsIgnoreCase(firstWord,"m")) {
    Game[] games=gameService.getAllActiveGames();
    Game examinedGame=null;
    for (    Game game : games) {
      if (game.isInState(Game.EXAMINING_STATE) || game.isInState(Game.SETUP_STATE)) {
        examinedGame=game;
        break;
      }
    }
    if (examinedGame != null) {
      onUnexamine(examinedGame);
    }
  }
}

protected void handleUnexamineOnSendMessage ( String message ) { if ( StringUtils . isBlank ( message ) ) { return ; } String firstWord = message . split ( " " ) [ 0 ] ; if ( StringUtils . equalsIgnoreCase ( firstWord , "getgame" ) || StringUtils . equalsIgnoreCase ( firstWord , "examine" ) || StringUtils . equalsIgnoreCase ( firstWord , "$$examine" ) || StringUtils . equalsIgnoreCase ( firstWord , "examin" ) || StringUtils . equalsIgnoreCase ( firstWord , "exami" ) || StringUtils . equalsIgnoreCase ( firstWord , "exam" ) || StringUtils . equalsIgnoreCase ( firstWord , "exa" ) || StringUtils . equalsIgnoreCase ( firstWord , "ex" ) || StringUtils . equalsIgnoreCase ( firstWord , "play" ) || StringUtils . equalsIgnoreCase ( firstWord , "seek" ) || StringUtils . equalsIgnoreCase ( firstWord , "match" ) || StringUtils . equalsIgnoreCase ( firstWord , "matc" ) || StringUtils . equalsIgnoreCase ( firstWord , "mat" ) || StringUtils . equalsIgnoreCase ( firstWord , "ma" ) || StringUtils . equalsIgnoreCase ( firstWord , "m" ) ) { Game [ ] games = gameService . getAllActiveGames ( ) ; Game examinedGame = null ; for ( Game game : games ) { if ( game . isInState ( Game . EXAMINING_STATE ) || game . isInState ( Game . SETUP_STATE ) ) { examinedGame = game ; break ; } } if ( examinedGame != null ) { onUnexamine ( examinedGame ) ; } } }
handles automatically sending an unexamine if the user is examining a game .
