private List<Unit> readAllUnits() throws FenixServiceException, FenixFilterException, ExcepcaoPersistencia { Unit istUnit = UnitUtils.readUnitWithoutParentstByName(UnitUtils.IST_UNIT_NAME); if(istUnit == null){ return new ArrayList();
private List<Unit> readAllUnits() throws FenixServiceException, FenixFilterException { List<Unit> allUnits = readAllDomainObjects(Unit.class);  List<Unit> unitsIst = new ArrayList(); for(Unit unitList : allUnits){ if (!(unitList.getType() != null && unitList.getType().equals(UnitType.EXTERNAL_INSTITUTION))){ unitsIst.add(unitList); }
    private List<Unit> readAllUnits() throws FenixServiceException, FenixFilterException, ExcepcaoPersistencia {                               Unit istUnit = UnitUtils.readUnitWithoutParentstByName(UnitUtils.IST_UNIT_NAME);        if(istUnit == null){        	return new ArrayList();        }        List<Unit> unitsIst = new ArrayList();        unitsIst.addAll(istUnit.getSubUnits());        return unitsIst;            }