public GratuitySituation(GratuityValues gratuityValues, StudentCurricularPlan studentCurricularPlan) { this(); setGratuityValues(gratuityValues); setStudentCurricularPlan(studentCurricularPlan); setWhen(Calendar.getInstance().getTime()); Double totalValue = null;  if (studentCurricularPlan.getSpecialization().equals(Specialization.MASTER_DEGREE)) { totalValue = gratuityValues.calculateTotalValueForMasterDegree(); } else if (studentCurricularPlan.getSpecialization().equals(Specialization.SPECIALIZATION)) { totalValue = gratuityValues.calculateTotalValueForSpecialization(studentCurricularPlan); }  setRemainingValue(totalValue); setTotalValue(totalValue); }
public GratuitySituation() { super(); setRootDomainObject(RootDomainObject.getInstance()); }
    public GratuitySituation(GratuityValues gratuityValues, StudentCurricularPlan studentCurricularPlan) {    	this();        setGratuityValues(gratuityValues);        setStudentCurricularPlan(studentCurricularPlan);        setWhen(Calendar.getInstance().getTime());        Double totalValue = null;        if (studentCurricularPlan.getSpecialization().equals(Specialization.MASTER_DEGREE)) {            totalValue = gratuityValues.calculateTotalValueForMasterDegree();        } else if (studentCurricularPlan.getSpecialization().equals(Specialization.SPECIALIZATION)) {            totalValue = gratuityValues.calculateTotalValueForSpecialization(studentCurricularPlan);        }        setRemainingValue(totalValue);        setTotalValue(totalValue);    }