if (studentCurricularPlan.getSpecialization().equals(Specialization.SPECIALIZATION) && !this.firstYear) { return; }
    private void createGratuitySituation(IExecutionYear executionYear, IGratuityValues gratuityValues,            IStudentCurricularPlan studentCurricularPlan,            IPersistentGratuitySituation gratuitySituationDAO) throws ExcepcaoPersistencia {            //        if (studentCurricularPlan.getSpecialization().equals(Specialization.ESPECIALIZACAO_TYPE)) {//            Calendar calendar = new GregorianCalendar();//            calendar.setTime(studentCurricularPlan.getDegreeCurricularPlan().getInitialDate());//            int initialYear = calendar.get(Calendar.YEAR);////            calendar.setTime(executionYear.getBeginDate());//            int gratuityYear = calendar.get(Calendar.YEAR);////            // if itsn't the first year for a specialization curricular plan,//            // its not necessary, because the specialization only occurs in the//            // first year of ta master degree//            if (initialYear != gratuityYear) {//                return;//            }////        }        IGratuitySituation gratuitySituation = new GratuitySituation();        gratuitySituation.setGratuityValues(gratuityValues);        gratuitySituation.setStudentCurricularPlan(studentCurricularPlan);        gratuitySituation.setWhen(Calendar.getInstance().getTime());        Double totalValue = null;        if (studentCurricularPlan.getSpecialization().equals(Specialization.MASTER_DEGREE)) {            totalValue = calculateTotalValueForMasterDegree(gratuityValues);        }        // else if        // (studentCurricularPlan.getSpecialization().equals(Specialization.ESPECIALIZACAO_TYPE))        // {        // totalValue = calculateTotalValueForSpecialization(executionYear,        // gratuityValues,        // studentCurricularPlan);        // }        if ((totalValue == null)) {            // the student has nothing to pay            return;        }        gratuitySituation.setRemainingValue(totalValue);        gratuitySituation.setTotalValue(totalValue);        gratuitySituationDAO.simpleLockWrite(gratuitySituation);    }