class SessionVote {

    @DELETE
    @Path("/attendee/{id}")
    @Produces(APPLICATION_JSON)
    public void deleteAttendee(@PathParam("id") String id) {
        Attendee attendee = getAttendee(id);
        Collection<SessionRating> ratings = votesByAttendee(attendee.getId());
        for (SessionRating rating : ratings) {
            selectedSessionRatingDAO.deleteRating(rating.getId());
        }
        selectedAttendeeDAO.deleteAttendee(attendee.getId());
    }

}