StubRegistry function

StubRegistry