code: public void restore(HttpServletRequest req, HttpServletResponse res, boolean anyMethod) {
  		if (!(req instanceof IExtendedRequest)) {
  			if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
  				Tr.debug(tc, "It is not an IExtendedRequest object");
  			}
  			return;
  		}
  		if (!anyMethod && !req.getMethod().equalsIgnoreCase("GET")) {
  			return;
  		}
  
  		String reqURL = req.getRequestURI();
  		IExtendedRequest extRequest = (IExtendedRequest) req;
  		if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
  			Tr.debug(tc, " method : " + req.getMethod() + " URL:" + reqURL);
  		}
  		String postParamSaveMethod = webAppSecurityConfig.getPostParamSaveMethod();
  		if (postParamSaveMethod.equalsIgnoreCase(WebAppSecurityConfig.POST_PARAM_SAVE_TO_COOKIE)) {
  			restoreFromCookie(extRequest, res, reqURL);
  		} else if (postParamSaveMethod.equalsIgnoreCase(WebAppSecurityConfig.POST_PARAM_SAVE_TO_SESSION)) {
  			restoreFromSession(extRequest, req, reqURL);
  		}
  	}
docs: Restore POST parameters from session or cookie.
  
  @param req
  @param res