buffer.append(personFunction.getPerson().getNome()).append("  "); buffer.append(personFunction.getBeginDate().toString()).append(" - ").append(personFunction.getEndDate().toString());
buffer.append(personFunction.getPerson().getNome()).append(" ("); buffer.append(personFunction.getBeginDate().toString()).append(" - ").append(personFunction.getEndDate().toString()).append(")");
    private void getFunctionsList(Unit unit, Function function, StringBuffer buffer,            ExecutionYear iExecutionYear) throws FenixFilterException, FenixServiceException {        buffer.append("\t<li class='tree_label'><span>").append(function.getName()).append(": ").append(                "</span>\r\n");        if (function.getPersonFunctions().size() > 0) {            buffer.append("\t<ul class='unit1'>\r\n");            for (PersonFunction personFunction : getValidPersonFunction(iExecutionYear, function)) {                if (personFunction.belongsToPeriod(iExecutionYear.getBeginDateYearMonthDay(), iExecutionYear.getEndDateYearMonthDay())) {                    if (personFunction.getEndDate() == null) {                        buffer.append("\t\t<li class='eo_highlight'>");                    } else {                        buffer.append("\t\t<li>");                    }                    buffer.append(personFunction.getPerson().getNome()).append("  ");                    buffer.append(personFunction.getBeginDate().toString()).append(" - ").append(personFunction.getEndDate().toString());                    buffer.append("</li>\r\n");                }            }            buffer.append("\t</ul>\r\n");        } else {            if (function.getParentInherentFunction() != null) {                if (function.getParentInherentFunction().getPersonFunctions().size() > 0) {                    buffer.append("\t<ul class='unit1'>\r\n");                    for (PersonFunction personFunction : getValidPersonFunction(iExecutionYear, function                            .getParentInherentFunction())) {                        if (personFunction.belongsToPeriod(YearMonthDay.fromDateFields(iExecutionYear                                .getBeginDate()), YearMonthDay.fromDateFields(iExecutionYear                                .getEndDate()))) {                            if (personFunction.getEndDate() == null) {                                buffer.append("\t\t<li class='eo_highlight'>");                            } else {                                buffer.append("\t\t<li>");                            }                            // String userName =                            // personFunction.getPerson().getUsername().substring(1);                            buffer.append(personFunction.getPerson().getNome());                            buffer.append("</li>\r\n");                        }                    }                    buffer.append("\t</ul>\r\n");                }            }        }        buffer.append("\t</li>\r\n");    }