if (result == null) { addActionMessage(request, "error.Result.not.found");
if((resultIdStr==null || resultIdStr.equals("")) && request.getParameterMap().containsKey("resultId")) { resultIdStr = request.getParameter("resultId");
    public Result readResultFromRequest(HttpServletRequest request) throws Exception {        final Integer resultId = Integer.valueOf(request.getParameter("resultId"));        final Result result = rootDomainObject.readResultByOID(resultId);                if (result == null) {            addActionMessage(request, "error.Result.not.found");        }        else {            request.setAttribute("result", result);        }        return result;    }