if (unit.getName().equals("IST")) { return isElegibleIST(person, functionName);
if (unit.getName().equals("Conselho Directivo")) { return isElegibleConselhoDirectivo(person, functionName);
    public static Boolean isElegible(IPerson person, IUnit unit, String functionName) {        if (unit.getName().equals("IST")) {            return isElegibleIST(person, functionName);        }        if (unit.getName().equals("Assembleia de Representantes")) {            return isElegibleAssembleiaRepresentantes(person, functionName);        }//        if (unit.getName().equals("Comisso Executiva")) {//            String parentUnitName = unit.getParentUnit().getName();//            if (parentUnitName.equals("Conselho Cientfico")) {//                return isElegibleConselhoCientifico(person, functionName);//            }//            if (parentUnitName.equals("Conselho Pedaggico")) {//                return isElegibleConselhoPedagogico(person, functionName);//            }//        }        if (unit.getName().equals("Conselho Administrativo")) {            return isElegibleConselhoAdministrativo(person, functionName);        }        if (unit.getName().equals("Conselho Consultivo")) {            return isElegibleConselhoConsultivo(person, functionName);        }        if (unit.getName().startsWith("Centro de Informtica do IST (CIIST)")) {            return isElegibleCIIST(person, functionName);        }        if (unit.getName().startsWith("Presidncia do Departamento")) {            return isElegibleDefaultDepartment(person, functionName);        }        if (unit.getName().startsWith("Conselho do Departamento")) {            return isElegibleDefaultDepartment(person, functionName);        }        if (unit.getName().startsWith("Seco")) {            return isElegibleDefaultSection(person, functionName);        }        if (unit.getName().equals("Associao de Estudantes (AEIST)")) {            return isElegibleAEIST(person, functionName);        }        return true;    }