if (account == null) {
return Response.status(Response.Status.NOT_FOUND).build();
}
HPerson person = account.getPerson();
User user =
new User(account.getUsername(), person.getEmail(),
person.getName(),
gravatarServiceImpl.getGravatarHash(person.getEmail()));
return Response.ok(user).build();
}