code: protected void setSessionValue(final HttpServletRequest request, final String key,
        final Object value) {
      request.getSession(true).setAttribute(key, value);
    }
docs: Returns the session value of the request.