This happens automatically during import. See the bottom of this file:
Products/ResourceRegistries/exportimport/resourceregistry.py
It might have been added sometime during Plone 4.x.