protected HttpAction adaptLogoutResponseToBinding(final WebContext context, final SAML2MessageContext samlContext) {
        val adapter = samlContext.getProfileRequestContextOutboundMessageTransportResponse();
        if (spLogoutResponseBindingType.equalsIgnoreCase(SAMLConstants.SAML2_POST_BINDING_URI)) {
            val content = adapter.getOutgoingContent();
            return HttpActionHelper.buildFormPostContentAction(context, content);
        } else {
            val location = adapter.getRedirectUrl();
            return HttpActionHelper.buildRedirectUrlAction(context, location);
        }
    }
<p>adaptLogoutResponseToBinding.</p>

@param context a {@link WebContext} object
@param samlContext a {@link SAML2MessageContext} object
@return a {@link HttpAction} object
pac4j-saml/src/main/java/org/pac4j/saml/logout/processor/SAML2LogoutProcessor.java