@GET
  @Path("all")
  @Produces({MediaType.APPLICATION_XML})
  public String findTournaments() {
    
    Set<Tournament> tournamentSet = tournamentBO.findAll();
    
    for (Tournament tournament : tournamentSet) {
      Set<Team> teamSet = teamBO.findByTournament(tournament.getIdTournament());
      tournamentSet.remove(tournament);
      tournament.setTeamSet(teamSet);
      tournamentSet.add(tournament);
    }
    
    TournamentResponse response = new TournamentResponse();
    String responseStr = null;
    
    try {
      responseStr = response.tournamentsToXML(tournamentSet);
    } catch (TransformerException e) {
      e.printStackTrace();
    }
    
    return responseStr;
  }