@Override
public Response getUser(String id) {
String userId = SELF.equals(id) ? userService.getAuthenticatedUser().getId() : id;
org.apache.rave.model.User user = userService.getUserById(userId);
if (user != null) {
return Response.ok(new User(user)).build();
} else {
return Response.status(Response.Status.NOT_FOUND).build();
}
}