class OrganisationJourneyEnd {

    public String completeProcess(HttpServletRequest request, HttpServletResponse response, UserResource user, long organisationId) {
        if (user != null) {
            return handleExistingUser(request, response, user, organisationId);
        } else {
            registrationCookieService.saveToOrganisationIdCookie(organisationId, response);
            return "redirect:/registration/register";
        }
    }

}