public Double getTheoreticalHours(CurricularPeriod curricularPeriod) { double result = 0.0; if (this.getCompetenceCourse() != null) { result = this.getCompetenceCourse().getTheoreticalHours(curricularPeriod.getOrder());
public Double getTheoreticalHours() { Double result = 0.0; if (super.getTheoreticalHours() != null) { result = super.getTheoreticalHours(); } else if (this.getCompetenceCourse() != null) { result = this.getCompetenceCourse().getTheoreticalHours();
    public Double getTheoreticalHours(CurricularPeriod curricularPeriod) {        double result = 0.0;        if (this.getCompetenceCourse() != null) {            result = this.getCompetenceCourse().getTheoreticalHours(curricularPeriod.getOrder());        }        return result;    }