public ActionForward prepareSelectiveDownload(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws FenixActionException, IOException, ServletException {
IViewState viewState = RenderUtils.getViewState("selectiveDownload");
Integer value = (viewState != null) ? (Integer) viewState.getMetaObject().getObject() : null;
VariantBean bean = new VariantBean();
bean.setInteger(value);
final Project project = getProject(request);
if (bean.getInteger() != null) {
final List<ProjectSubmission> projectSubmissions =
new ArrayList<ProjectSubmission>(project.getLastProjectSubmissionForEachStudentGroup());
Collections.sort(projectSubmissions, ProjectSubmission.COMPARATOR_BY_MOST_RECENT_SUBMISSION_DATE);
setRequestParameters(request, project, projectSubmissions, null);
} else {