@Override
    public List<SingleLogoutRequestContext> execute(final String ticketId,
                                                    final HttpServletRequest request,
                                                    final HttpServletResponse response) {
        try {
            val ticket = ticketRegistry.getTicket(ticketId, Ticket.class);
            LOGGER.debug("Ticket [{}] found. Processing logout requests and then deleting the ticket...", ticket.getId());
            val clientInfo = ClientInfoHolder.getClientInfo();
            val logoutRequests = new ArrayList<SingleLogoutRequestContext>();
            if (ticket instanceof final TicketGrantingTicket tgt) {
                val results = logoutManager.performLogout(
                    SingleLogoutExecutionRequest.builder()
                        .ticketGrantingTicket(tgt)
                        .httpServletRequest(Optional.of(request))
                        .httpServletResponse(Optional.of(response))
                        .build());
                results.stream().filter(r -> r.getStatus() == LogoutRequestStatus.FAILURE)
                    .forEach(r -> LOGGER.warn("Logout request for [{}] and [{}] has failed", r.getTicketId(), r.getLogoutUrl()));
                logoutRequests.addAll(results);
            }
            LOGGER.trace("Removing ticket [{}] from registry...", ticketId);
            ticketRegistry.deleteTicket(ticketId);
            if (ticket instanceof final TicketGrantingTicket tgt) {
                applicationContext.publishEvent(new CasTicketGrantingTicketDestroyedEvent(this, tgt, clientInfo));
            }
            return logoutRequests;
        } catch (final Exception e) {
            val msg = String.format("Ticket-granting ticket [%s] cannot be found in the ticket registry.", ticketId);
            LOGGER.debug(msg, e);
        }
        return new ArrayList<>();
    }
This is {@link DefaultSingleLogoutRequestExecutor}.

@author Misagh Moayyed
@since 6.5.0
core/cas-server-core-logout-api/src/main/java/org/apereo/cas/logout/slo/DefaultSingleLogoutRequestExecutor.java