public SamlProfileBuilderContext transferTo(final RequestAbstractType request, final String toBinding) {
        return SamlProfileBuilderContext.builder()
            .samlRequest(request)
            .httpRequest(httpRequest)
            .httpResponse(httpResponse)
            .authenticatedAssertion(authenticatedAssertion)
            .registeredService(registeredService)
            .adaptor(adaptor)
            .binding(toBinding)
            .build();
    }
Transfer to a new context.

@param request   the query
@param toBinding the binding
@return the saml profile builder context
support/cas-server-support-saml-idp-web/src/main/java/org/apereo/cas/support/saml/web/idp/profile/builders/SamlProfileBuilderContext.java