Accommodate API change in Descriptor class.