Sorry I didn't notice it before, but changing resource key format requires the discovery component to implement the `ResourceUpgradeFacet` interface. Using this facet, you can "port" the directories discovered by the old method (and having the resource key in the old format) to the new format. If you don't do that, you end up with duplicate resources in the inventory tree when you upgrade from an older version of RHQ.