class FinanceChecksQueriesController {

    @PreAuthorize("hasPermission(#projectId, 'org.innovateuk.ifs.project.resource.ProjectCompositeId', 'ACCESS_FINANCE_CHECKS_QUERIES_SECTION')")
    @GetMapping("/{queryId}/new-response")
    public String viewNewResponse(@P("projectId")@PathVariable Long projectId,
                                  @PathVariable Long organisationId,
                                  @PathVariable Long queryId,
                                  @RequestParam(value = "query_section", required = false) String querySection,
                                  Model model,
                                  @ModelAttribute(name = "loggedInUser", binding = false) UserResource loggedInUser,
                                  HttpServletRequest request) {
        partnerOrganisationRestService.getPartnerOrganisation(projectId, organisationId);
        List<Long> attachments = loadAttachmentsFromCookie(request, projectId, organisationId, queryId);
        populateQueriesViewModel(projectId, organisationId, queryId, querySection, attachments, model);
        model.addAttribute(FORM_ATTR, loadForm(request, projectId, organisationId, queryId).orElse(new FinanceChecksQueriesAddResponseForm()));
        return QUERIES_VIEW;
    }

}