[TIMOB-14319] Dont use deprecated method