Integer year = Integer.valueOf(tokens[i].trim());
String teamName = tokens[i + 1].trim();
Team team = teamResolver.resolve(teamName);
if (team != null) {
TeamRiderHistory trh = new TeamRiderHistory();
trh.setYear(year);
trh.setRider(rider);
trh.setTeam(team);
rider.getTeamsHistory().add(trh);
} else {
System.out.println("Unable to resolve: " + teamName);
}
}