sessionEncoding = response.encodeURL("");
sessionEncoding = response.encodeURL("foo").substring(3);
    public void setResponse(HttpServletResponse response) {        this.response = response;        if (response != null) {            sessionEncoding = response.encodeURL("");        }    }