UserModel user = GitBlitWebSession.get().getUser();
Patchset ps = ticket.getCurrentPatchset();
Change change = new Change(user.username);
change.review(ps, score, !ticket.isReviewer(user.username));
if (!ticket.isWatching(user.username)) {
change.watch(user.username);
}
TicketModel updatedTicket = app().tickets().updateTicket(getRepositoryModel(), ticket.number, change);
app().tickets().createNotifier().sendMailing(updatedTicket);
setResponsePage(TicketsPage.class, getPageParameters());
}