Camunda logout with CAS (redirect to cas/logout)?

Hi all.

I intergrated camunda with CAS 5.2.
I want to custom logout process of camunda with CAS.

So I did as below:

I Add new Filter(LogoutFilter):
doFilter():
response.sendRedirect(“https://localhost:8443/cas/logout”)
clearSession()

But it did not work.
I guess it made another filter do wrong.

Pls help me.
Sorry for my English.