class SessionVote {

    @PUT
    @Path("/attendee/{id}")
    @Produces(APPLICATION_JSON)
    @Consumes(APPLICATION_JSON)
    public Attendee updateAttendee(@PathParam("id") String id, Attendee attendee) {
        Attendee original = getAttendee(id);
        original.setName(attendee.getName());
        Attendee updated = selectedAttendeeDAO.updateAttendee(original);
        return updated;
    }

}