@PreAuthorize("(hasAnyRole('ROLE_USER','ROLE_ADMIN'))")
@RequestMapping(value = Paths.USER_PROFILE)
public String profile(Model model) {
String pageTitel = "user profile";
UserDetails userDetails = getCurrentUserDetails();
User user = userService.getUserByUserName(userDetails.getUsername());
model.addAttribute("id", user.getId());
model.addAttribute("username", user.getUsername());
model.addAttribute("firstname", user.getFirstName());
model.addAttribute("lastname", user.getLastName());
model.addAttribute("fileList", fileService.listAll());
Long profileImageId = null;
model.addAttribute("action", "viewProfile");