204205206207208209210211212213214
PollsVote vote = null; try { vote = PollsVoteUtil.findByPrimaryKey(votePK); throw new DuplicateVoteException(); } catch (NoSuchVoteException nsve) { vote = PollsVoteUtil.create(votePK); PollsChoicePK choicePK =