System.out.println("no existe empregado");
    public ActionForward showJustifications(ActionMapping mapping, ActionForm form,            HttpServletRequest request, HttpServletResponse response) throws FenixServiceException,            FenixFilterException {        final IUserView userView = SessionUtils.getUserView(request);        Employee employee = userView.getPerson().getEmployee();        if (employee == null) {            // erro            System.out.println("no existe empregado");            return mapping.findForward("index");        }        YearMonth yearMonth = null;        ViewState viewState = (ViewState) RenderUtils.getViewState();        if (viewState != null) {            yearMonth = (YearMonth) viewState.getMetaObject().getObject();        }        if (yearMonth == null) {            yearMonth = new YearMonth();            yearMonth.setYear(new YearMonthDay().getYear());            yearMonth.setMonth(Month.values()[new YearMonthDay().getMonthOfYear() - 1]);        } else if (yearMonth.getYear() > new YearMonthDay().getYear()) {            // erro - no pode ver nos anos futuros            System.out.println("erro - no pode ver nos anos futuros");        }        if (employee.getAssiduousness() != null) {            YearMonthDay beginDate = new YearMonthDay(yearMonth.getYear(), yearMonth.getMonth()                    .ordinal() + 1, 01);            YearMonthDay endDate = new YearMonthDay(yearMonth.getYear(),                    yearMonth.getMonth().ordinal() + 1, beginDate.dayOfMonth().getMaximumValue());            List<Justification> justifications = new ArrayList<Justification>();            justifications.addAll(employee.getAssiduousness().getLeaves(beginDate, endDate));            justifications.addAll(employee.getAssiduousness().getMissingClockings(beginDate, endDate));            List<Justification> orderedJustifications = new ArrayList<Justification>(justifications);            Collections.sort(orderedJustifications, new BeanComparator("date"));            request.setAttribute("justifications", orderedJustifications);        }        request.setAttribute("yearMonth", yearMonth);        request.setAttribute("employee", employee);        return mapping.findForward("show-justifications");    }