if (curricularPeriod.getOrder() == order && curricularPeriod.getPeriodType() == periodType) {
if (curricularPeriod.getOrder().equals(order) && curricularPeriod.getPeriodType() == periodType) {
    private CurricularPeriod findChild(CurricularPeriodType periodType, Integer order) {        for (CurricularPeriod curricularPeriod : getChilds()) {            if (curricularPeriod.getOrder() == order && curricularPeriod.getPeriodType() == periodType) {                return curricularPeriod;            }        }        return null;    }