Add IRegistry convenience method.