[DD-886] fixed deprecated API usage