try { coachee = AuthHelper.getCoachee(buddyToAccessParameter, buddiesService);
} catch (CoachRevokedException e) {return Response.status(403).entity("Sorry, permission to access this data has been revoked. Please reload your browser window").build();}
Guest guest = ApiHelper.getBuddyToAccess(guestService, coachee);
if (guest==null)
return Response.status(401).entity("You are no longer logged in").build();
GuestModel guestModel = new GuestModel(guest, coachee!=null);
if (includeAvatar)
guestModel.avatar = getAvatarImageModel(buddyToAccessParameter, guest);
return Response.ok(guestModel).build();
}
catch (Exception e){