if (RenderUtils.getViewState("candidacyDocuments") != null) { RenderUtils.invalidateViewState("candidacyDocuments"); }
    private void fillRequest(HttpServletRequest request, Candidacy candidacy) {        List<CandidacyDocumentUploadBean> candidacyDocuments = new ArrayList<CandidacyDocumentUploadBean>();        for (CandidacyDocument candidacyDocument : candidacy.getCandidacyDocuments()) {            candidacyDocuments.add(new CandidacyDocumentUploadBean(candidacyDocument));        }        request.setAttribute("candidacyDocuments", candidacyDocuments);        request.setAttribute("candidacy", candidacy);        request.setAttribute("fileDownloadUrlFormat", FILE_DOWNLOAD_URL_FORMAT);    }