final String year = executionYear.getYear(); final Integer yearPart1 = Integer.valueOf(Integer.valueOf(year.substring(0, 4)).intValue() + 1); final Integer yearPart2 = Integer.valueOf(Integer.valueOf(year.substring(5, 9)).intValue() + 1); final String yearString = yearPart1 + "-" + yearPart2;
final String yearString = executionYear.getNextYearsYearString();
    public ActionForward proposalsXLS(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)    		throws FenixActionException, FenixFilterException, FenixServiceException {    	final String executionDegreeOIDString = request.getParameter("executionDegreeOID");    	final ExecutionDegree executionDegree = rootDomainObject.readExecutionDegreeByOID(Integer.valueOf(executionDegreeOIDString));    	final ExecutionYear executionYear = executionDegree.getExecutionYear();    	final String year = executionYear.getYear();    	final Integer yearPart1 = Integer.valueOf(Integer.valueOf(year.substring(0, 4)).intValue() + 1);    	final Integer yearPart2 = Integer.valueOf(Integer.valueOf(year.substring(5, 9)).intValue() + 1);    	final String yearString = yearPart1 + "-" + yearPart2;        try {            response.setContentType("text/plain");            response.setHeader("Content-disposition", "attachment; filename=proposals_" + yearString + ".xls");            ServletOutputStream writer = response.getOutputStream();            final Spreadsheet spreadsheet = new Spreadsheet("Proposals " + yearString);            setHeaders(spreadsheet);            fillSpreadSheet(executionDegree, spreadsheet);            spreadsheet.exportToXLSSheet(writer);            writer.flush();            response.flushBuffer();        } catch (IOException e) {            throw new FenixServiceException();        }        return null;    }