class SessionVote {

    @GET
    @Path("/ratingsByAttendee")
    @Produces(APPLICATION_JSON)
    @Consumes(APPLICATION_JSON)
    public Collection<SessionRating> votesByAttendee(@QueryParam("attendeeId") String attendeeId) {
        Attendee attendee = selectedAttendeeDAO.getAttendee(attendeeId);
        if (attendee == null) {
            throw new BadRequestException("Invalid attendee id: " + attendeeId);
        }
        return selectedSessionRatingDAO.getRatingsByAttendee(attendeeId);
    }

}