public PlayOffGameDto getPlayOffGameDto( PlayOffGame game, Groups group, Locale locale, int playOfGameCount) { PlayOffGameDto gameDto = new PlayOffGameDto(); if (game.getHomeParticipant() != null) { gameDto.setPlayerName(getPlayerName(game.getHomeParticipant().getPlayer())); gameDto.setHomeParticipantId(game.getHomeParticipant().getId()); } if (game.getAwayParticipant() != null) { gameDto.setOpponentName(getPlayerName(game.getAwayParticipant().getPlayer())); gameDto.setAwayParticipantId(game.getAwayParticipant().getId()); } gameDto.setGameId(game.getId()); gameDto.setResult(game.getResult()); gameDto.setRoundName( TournamentUtil.getRoundName(locale, group, game.getPosition(), playOfGameCount)); assignWinner(gameDto); return gameDto; }