Use non-deprecated getTableFields()