class TravelingTournamentSolutionFileIO extends AbstractJsonSolutionFileIO<TravelingTournament> {

    public TravelingTournamentSolutionFileIO() {
        super(TravelingTournament.class);
    }

    @Override
    public TravelingTournament read(File inputSolutionFile) {<FILL_FUNCTION_BODY>}

}

        TravelingTournament travelingTournament = super.read(inputSolutionFile);

        var teamsById = travelingTournament.getTeamList().stream()
                .collect(Collectors.toMap(Team::getId, Function.identity()));
        /*
         * Replace the duplicate team instances in the distanceToTeamMap by references to instances from
         * the teamList.
         */
        for (Team team : travelingTournament.getTeamList()) {
            var newTravelDistanceMap = deduplicateMap(team.getDistanceToTeamMap(),
                    teamsById, Team::getId);
            team.setDistanceToTeamMap(newTravelDistanceMap);
        }
        return travelingTournament;
    
<methods>public void <init>(Class<org.optaplanner.examples.travelingtournament.domain.TravelingTournament>) ,public void <init>(Class<org.optaplanner.examples.travelingtournament.domain.TravelingTournament>, ObjectMapper) <variables>