}
    protected void getSpans(HttpServletRequest request, InfoReport infoReport) {        if (infoReport != null) {            Boolean lastSpan = new Boolean(true);            int lines = infoReport.getLines().size();            if (lines > numberOfSpanElements) {                Integer span = getCodeFromRequest(request, "span");                if (span == null)                    span = new Integer(0);                int pagesNumber = (int) Math.ceil((double) lines / numberOfSpanElements);                int startSpan = span.intValue() * numberOfSpanElements;                int length = numberOfSpanElements;                if (span.intValue() == (pagesNumber - 1))                    length = lines % numberOfSpanElements;                else                    lastSpan = new Boolean(false);                request.setAttribute("span", span);                request.setAttribute("startSpan", new Integer(startSpan));                request.setAttribute("length", new Integer(length));                request.setAttribute("numberOfSpanElements", new Integer(numberOfSpanElements));                request.setAttribute("spanNumber", new Integer(pagesNumber));            }            request.setAttribute("lastSpan", lastSpan);        }    }