*/
public SectionStatus toggleReviewed (User person, ContentLoc loc) {
ISIXmlSection sec = loc.getSection().getSectionAncestor();
if (sec == null)
return null;
SectionStatus stat = getSectionStatus(person, sec);
if (stat == null || !stat.getCompleted()) {
throw new IllegalStateException("Should not be able to adjust a review on an uncomplete or non-existant section status");
} else {
boolean reviewed = stat.getReviewed();
stat.setReviewed(!reviewed);
}
cwmService.flushChanges();
eventService.saveEvent("section:" + (stat.getReviewed() ? "reviewed" : "not reviewed"), null, loc.getLocation());
return stat;
}