NXP-10022: use not deprecated API