/**
  * Post peer review comments.
  */
 function postPeerReviewComment($args, $request)
 {
     $this->validate($request);
     $this->setupTemplate($request, true);
     $paperId = $request->getUserVar('paperId');
     $reviewId = $request->getUserVar('reviewId');
     // If the user pressed the "Save and email" button, then email the comment.
     $emailComment = $request->getUserVar('saveAndEmail') != null ? true : false;
     $submissionEditHandler = new SubmissionEditHandler();
     $submissionEditHandler->validate($request, $paperId);
     $paperDao = DAORegistry::getDAO('PaperDAO');
     $submission =& $paperDao->getPaper($paperId);
     if (TrackDirectorAction::postPeerReviewComment($request, $submission, $reviewId, $emailComment)) {
         TrackDirectorAction::viewPeerReviewComments($submission, $reviewId);
     }
 }