Source:
public InstructorStudentRecordsPageData(AccountAttributes account, StudentAttributes student, String courseId, String showCommentBox, StudentProfileAttributes spa, List<CommentAttributes> comments, List<String> sessionNames, InstructorAttributes instructor) { super(account, student); this.courseId = courseId; this.studentName = Sanitizer.sanitizeForHtml(student.name); this.studentEmail = student.email; this.googleId = account.googleId; this.showCommentBox = showCommentBox; if (spa != null) { this.spa = spa; String pictureUrl = Const.ActionURIs.STUDENT_PROFILE_PICTURE + "?" + Const.ParamsNames.BLOB_KEY + "=" + spa.pictureKey + "&" + Const.ParamsNames.USER_ID + "=" + account.googleId; if (spa.pictureKey.isEmpty()) { pictureUrl = Const.SystemParams.DEFAULT_PROFILE_PICTURE_PATH; } this.studentProfile = new StudentProfile(this.studentName, spa, pictureUrl); } List<Comment> commentDivs = new ArrayList<Comment>(); for (CommentAttributes comment : comments) { Comment commentDiv = new Comment(comment, "You", student.name + " (" + student.team + ", " + student.email + ")"); String whoCanSeeComment = getTypeOfPeopleCanViewComment(comment); commentDiv.setVisibilityIcon(whoCanSeeComment); commentDiv.setEditDeleteEnabled(false); commentDiv.setNotFromCommentsPage(student.email); commentDiv.setNumComments(comments.size()); commentDivs.add(commentDiv); } this.commentsForStudentTable = new ArrayList<CommentsForStudentsTable>(); CommentsForStudentsTable commentsForStudent = new CommentsForStudentsTable("You", commentDivs); commentsForStudent.setInstructorAllowedToGiveComment(instructor.isAllowedForPrivilege(student.section, Const.ParamsNames.INSTRUCTOR_PERMISSION_GIVE_COMMENT_IN_SECTIONS)); commentsForStudentTable.add(commentsForStudent); this.sessionNames = sessionNames; }

Target:
public InstructorStudentRecordsPageData(AccountAttributes account, StudentAttributes student, String courseId, String showCommentBox, StudentProfileAttributes spa, List<CommentAttributes> comments, List<String> sessionNames, InstructorAttributes instructor) { super(account, student); this.courseId = courseId; this.studentName = Sanitizer.sanitizeForHtml(student.name); this.studentEmail = student.email; this.showCommentBox = showCommentBox; if (spa != null) { this.spa = spa; String pictureUrl = getPictureUrl(spa.pictureKey); this.studentProfile = new StudentProfile(student.name, spa, pictureUrl); } List<Comment> commentDivs = new ArrayList<Comment>(); for (CommentAttributes comment : comments) { Comment commentDiv = new Comment(comment, "You", student.name + " (" + student.team + ", " + student.email + ")"); String whoCanSeeComment = getTypeOfPeopleCanViewComment(comment); commentDiv.setVisibilityIcon(whoCanSeeComment); commentDiv.setEditDeleteEnabled(false); commentDiv.setNotFromCommentsPage(student.email); commentDiv.setNumComments(comments.size()); commentDivs.add(commentDiv); } this.commentsForStudentTable = new ArrayList<CommentsForStudentsTable>(); CommentsForStudentsTable commentsForStudent = new CommentsForStudentsTable("You", commentDivs); commentsForStudent.setInstructorAllowedToGiveComment( instructor.isAllowedForPrivilege(student.section, Const.ParamsNames.INSTRUCTOR_PERMISSION_GIVE_COMMENT_IN_SECTIONS)); commentsForStudentTable.add(commentsForStudent); this.sessionNames = sessionNames; }