@Override
    public boolean handle(final HttpServletRequest request, final HttpServletResponse response) {
        return FunctionUtils.doUnchecked(() -> {
            val username = StringUtils.isNotBlank(this.usernameParameter)
                ? StringUtils.defaultIfBlank(request.getParameter(this.usernameParameter), "N/A")
                : "N/A";
            val msg = "Access Denied for user ["
                      + StringEscapeUtils.escapeHtml4(username) + "] from IP Address ["
                      + request.getRemoteAddr() + ']';
            response.sendError(HttpStatus.SC_LOCKED, msg);
            LOGGER.warn(msg);

            return false;
        });
    }
This is {@link DefaultThrottledRequestResponseHandler}.

@author Misagh Moayyed
@since 6.0.0
core/cas-server-core-authentication-throttle/src/main/java/org/apereo/cas/throttle/DefaultThrottledRequestResponseHandler.java