@Override
    public ModelAndView build(final RegisteredService registeredService,
                              final String redirectUrl, final Map<String, String> parameters) {

        return configurationContext
            .stream()
            .map(ctx -> {
                val token = buildJwtResponse(registeredService, parameters);
                val mv = new RedirectView(redirectUrl);
                return new ModelAndView(mv, Map.of("response", token));
            })
            .findFirst()
            .orElseThrow();
    }
This is {@link OidcResponseModeQueryJwtBuilder}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-oidc-core-api/src/main/java/org/apereo/cas/oidc/web/response/OidcResponseModeQueryJwtBuilder.java