if (stringGrade != null && !stringGrade.equals("RE") && !stringGrade.equals("NA") && !stringGrade.equals("AP")) {
if (stringGrade != null && !stringGrade.equals("") && !stringGrade.equals("RE") && !stringGrade.equals("NA") && !stringGrade.equals("AP")) {
    private InfoClassification getInfoClassification(List enrollments) {        InfoClassification infoClassification = new InfoClassification();        int auxInt = 0;        float acc = 0;        float grade = 0;        for (Iterator iter1 = enrollments.iterator(); iter1.hasNext();) {            IEnrolment enrollment = (IEnrolment) iter1.next();            List enrollmentEvaluations = enrollment.getEvaluations();            IEnrolmentEvaluation enrollmentEvaluation = null;            if (enrollmentEvaluations != null && !enrollmentEvaluations.isEmpty()) {                Collections.sort(enrollmentEvaluations);                Collections.reverse(enrollmentEvaluations);                enrollmentEvaluation = (IEnrolmentEvaluation) enrollmentEvaluations.get(0);            }            String stringGrade;            if (enrollmentEvaluation != null) {                stringGrade = enrollmentEvaluation.getGrade();            } else {                stringGrade = "NA";            }            if (stringGrade != null && !stringGrade.equals("RE") && !stringGrade.equals("NA") && !stringGrade.equals("AP")) {                Float gradeObject = new Float(stringGrade);                grade = gradeObject.floatValue();                acc += grade;                auxInt++;            }        }        if (auxInt != 0) {            String value = new DecimalFormat("#0.0").format(acc / auxInt);            infoClassification.setAritmeticClassification(value);        }        infoClassification.setCompletedCourses(new Integer(auxInt).toString());        return infoClassification;    }