@Override
public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException, ServletException {
response.setContentType("application/json");
Result logoutResult = new Result.Builder(true).message("Logged out successfully").build();
String json = converter.getObjectMapper().writeValueAsString(logoutResult);
response.getWriter().write(json);
return;
}