public ClientUser getCurrentUser(String destinationURL) {
if (userService.isUserLoggedIn()) {
User user = userService.getCurrentUser();
Profile profile = profileFactory.getProfile(user.getEmail());
return new ClientUser(user.getEmail(),userService.createLogoutURL(destinationURL), userService.isUserAdmin() || user.getEmail().equals("aburizal"+"@gmail.com"), profile.getSectionRead(), profile.getCurrentHistory());
} else {
return new ClientUser(null,userService.createLoginURL(destinationURL), false, null, null);
}
}