private LogoutResponse createLogoutResponse(LogoutRequest logoutRequest,
                                                String statusCode) {
        final StatusCode success = build(StatusCode.DEFAULT_ELEMENT_NAME);
        success.setValue(statusCode);

        final Status status = build(Status.DEFAULT_ELEMENT_NAME);
        status.setStatusCode(success);

        final Issuer me = build(Issuer.DEFAULT_ELEMENT_NAME);
        me.setValue(entityId);

        final LogoutResponse logoutResponse = build(LogoutResponse.DEFAULT_ELEMENT_NAME);
        logoutResponse.setIssuer(me);
        logoutResponse.setID(requestIdManager.newId());
        logoutResponse.setIssueInstant(DateTime.now());
        logoutResponse.setStatus(status);
        logoutResponse.setInResponseTo(logoutRequest.getID());

        return logoutResponse;
    }
A service which receives a single logout request from an identity provider in order to perform a global
logout.
saml/src/main/java/com/linecorp/armeria/server/saml/SamlSingleLogoutFunction.java