/**
         * Returns the path-info for the current page, i.e. this will return the
         * url of the include page, not the original request.
         */
        public static string getPagePathInfo(QuercusHttpServletRequest request)
        {
            string uri = request.getIncludeRequestUri();

            if (uri != null)
            {
                return(request.getIncludePathInfo());
            }
            else
            {
                return(request.getPathInfo());
            }
        }