public void addTeam(Application application, Team team, TeamType type) {
notNull(application);
notNull(team);
notNull(type);
ApplicationTeam appTeam = application.addTeam(team, type);
// This allows duplicates to be created.
// template.save(appTeam);
// This filters out duplicates because the application stores the relationships in a set.