//no longer part of the review and persist the changes
}
//Deal with reviewers the designer has added to the review
ReviewerVersion reviewerVersion = new ReviewerVersion(user.getUserID(), version.getTime());
Reviewer tmpReviewer = null;
for (int i = 0; i < emails.length; i++) {
String email = emails[i];
if (!email.equals(user.getPerson().getEmail())) {
tmpReviewer = ReviewManager.getReviewManager().getReviewer("", email);
tmpReviewer.addReviewerVersion(reviewerVersion);
reviewers.add(tmpReviewer);
}
}
//Add the designer as a reviewer
tmpReviewer = ReviewManager.getReviewManager().getReviewer(user.getUserID(), user.getPerson().getEmail());
tmpReviewer.addReviewerVersion(reviewerVersion);
reviewers.add(tmpReviewer);
//Handle fake reviewer (if necessary)
String fakeReviewer = ServerManager.getServerManager().getDavinciProperty(Constants.FAKE_REVIEWER);
if (fakeReviewer != null) {
tmpReviewer = ReviewManager.getReviewManager().getReviewer("fakeReviewer", fakeReviewer);
tmpReviewer.addReviewerVersion(reviewerVersion);
reviewers.add(tmpReviewer);
}
version.setDraft(savingDraft);
version.setDueDate(dueDate);