&& (unit.getType().equals(PartyType.SECTION) || unit.getType().equals( PartyType.SCIENTIFIC_AREA));
&& (unit.getType().equals(PartyTypeEnum.SECTION) || unit.getType().equals( PartyTypeEnum.SCIENTIFIC_AREA));
    public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request,            HttpServletResponse response) throws FenixFilterException, FenixServiceException {        IUserView userView = SessionUtils.getUserView(request);        List<ExecutionPeriod> executionPeriods = (List<ExecutionPeriod>) ServiceUtils.executeService(                userView, "ReadAllDomainObjects", new Object[] { ExecutionPeriod.class });        List filteredExecutionPeriods = filterExecutionPeriods(executionPeriods);        Collections.sort(filteredExecutionPeriods, new BeanComparator("value"));        request.setAttribute("executionPeriods", filteredExecutionPeriods);        List<Department> departments = (List<Department>) ServiceUtils.executeService(userView,                "ReadAllDomainObjects", new Object[] { Department.class });        Iterator departmentOrderedIterator = new OrderedIterator(departments.iterator(),                new BeanComparator("name"));        request.setAttribute("departments", departmentOrderedIterator);        DynaActionForm dynaForm = (DynaActionForm) form;        if (dynaForm.get("departmentID") != null && !((Integer) dynaForm.get("departmentID")).equals(0)) {            Integer departmentID = (Integer) dynaForm.get("departmentID");            Department department = (Department) ServiceUtils.executeService(userView,                    "ReadDomainObject", new Object[] { Department.class, departmentID });            List<Unit> units = department.getUnit().getSubUnits();            List<Unit> filteredUnits = (List<Unit>) CollectionUtils.select(units, new Predicate() {                public boolean evaluate(Object object) {                    Unit unit = (Unit) object;                    return unit.getType() != null                            && (unit.getType().equals(PartyType.SECTION) || unit.getType().equals(                                    PartyType.SCIENTIFIC_AREA));                }            });            Iterator unitsOrderedIter = new OrderedIterator(filteredUnits.iterator(),                    new BeanComparator("name"));            request.setAttribute("units", unitsOrderedIter);        }        return mapping.findForward("prepare");    }