code: @Override
  	public void saveRequest(HttpServletRequest request, HttpServletResponse response) {
  		if (anyRequestMatcher.matches(request) && !ajaxRequestMatcher.matches(request)) {
  			DefaultSavedRequest savedRequest = new DefaultSavedRequest(request, portResolver);
  			HttpUtils.setStateParam(Config.RETURNTO_COOKIE,
  					Utils.base64enc(savedRequest.getRedirectUrl().getBytes()), request, response);
  		}
  	}
docs: Saves a request in cache.
  @param request HTTP request
  @param response HTTP response