* Gets the current user.
*
* @return the current user, {@code null} if not found
*/
public JSONObject getCurrentUser() {
final GeneralUser currentUser = userService.getCurrentUser();
if (null == currentUser) {
return null;
}
final String email = currentUser.getEmail();
return userRepository.getByEmail(email);
}