e.printStackTrace();
    private ActionForward listGrantContract(ActionMapping mapping, HttpServletRequest request,            ActionForm form, HttpServletResponse response,            InfoSpanByCriteriaListGrantContract infoSpanByCriteriaListGrantOwner) {        try {            IUserView userView = SessionUtils.getUserView(request);            // Read the grant contracts            Object[] args = { infoSpanByCriteriaListGrantOwner };            Object[] result = (Object[]) ServiceUtils.executeService(userView,                    "ListGrantContractByCriteria", args);            List listGrantContracts = (List) result[0];            infoSpanByCriteriaListGrantOwner = (InfoSpanByCriteriaListGrantContract) result[1];            if (listGrantContracts != null && listGrantContracts.size() != 0) {                // Setting the request                DynaValidatorForm listForm = (DynaValidatorForm) form;                setForm(listForm, infoSpanByCriteriaListGrantOwner);                request.setAttribute("listGrantContract", listGrantContracts);                if (infoSpanByCriteriaListGrantOwner.hasBeforeSpan()) {                    request.setAttribute("beforeSpan", infoSpanByCriteriaListGrantOwner.getBeforeSpan());                }                if (infoSpanByCriteriaListGrantOwner.hasAfterSpan()) {                    request.setAttribute("afterSpan", infoSpanByCriteriaListGrantOwner.getAfterSpan());                }                request.setAttribute("numberOfSpans", infoSpanByCriteriaListGrantOwner                        .getNumberOfSpans());            } else {                request.setAttribute("grantTypeList", createGrantTypeList(userView));                return setError(request, mapping, "errors.grant.list.noResults", "select-criteria", null);            }            return mapping.findForward("list-byCriteria-grant-contract");        } catch (FenixServiceException e) {            return setError(request, mapping, "errors.grant.unrecoverable", null, null);        } catch (Exception e) {            return setError(request, mapping, "errors.grant.unrecoverable", null, null);        }    }