refactoring for how to retrieve an instance of DefaultMessageRenderingHelper