docs: public void logout(boolean invalidateToken) throws IOException {
  
          if (isLoggedIn() && invalidateToken) {
              CmsUser user = getCmsObject().getRequestContext().getCurrentUser();
              CmsPersistentLoginTokenHandler tokenHandler = new CmsPersistentLoginTokenHandler();
              try {
                  Cookie cookie = new Cookie(CmsPersistentLoginAuthorizationHandler.COOKIE_NAME, "");
                  cookie.setMaxAge(0);
                  cookie.setPath(getCookiePath(true));
                  getResponse().addCookie(cookie);
                  tokenHandler.invalidateToken(
                      user,
                      CmsRequestUtil.getCookieValue(
                          getRequest().getCookies(),
                          CmsPersistentLoginAuthorizationHandler.COOKIE_NAME));
              } catch (Exception e) {
                  LOG.error("Could not invalidate tokens for user " + user, e);
              }
  
          }
          super.logout();
  
      }