Refactoring to use Autofac Integration package. Adding injecting of request message into the writer. Wiring up search query