( Disclaimer: As I stated here , while I find over the time ServiceLocator based code to be a bad practice, I do understand the need for its usage in certain brown-field scenarios as a way of reducing the risk while introducing the IoC.) In my previous Nikola’s laws of dependency injection blog...