public String loadMovie(@PathVariable int id) {
UserInfo userInfo = (UserInfo) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
int count = userInfo.getAuthorities().size();
SimpleGrantedAuthority[] authorities = new SimpleGrantedAuthority[count];
userInfo.getAuthorities().toArray(authorities);
Movie movie = moviesService.loadMovie(id);
return "You are watching movie <b>" + movie.getMovieName() + "</b> - [logged in as <b>" + userInfo.getUsername() + ", " + userInfo.getLastName() + "</b>]";
}