* This method adds a music to a user's collection.
*/
@Path("/users/{user.login}/musics/{music.id}")
@Put
public void addToMyList(User user, Music music) {
User currentUser = userInfo.getUser();
userDao.refresh(currentUser);
validator.check(user.getLogin().equals(currentUser.getLogin()),
new SimpleMessage("user", "you_cant_add_to_others_list"));
validator.check(!currentUser.getMusics().contains(music),
new SimpleMessage("music", "you_already_have_this_music"));
validator.onErrorUsePageOf(UsersController.class).home();
music = musicDao.load(music);
currentUser.add(music);
result.redirectTo(UsersController.class).home();
}