Migrating to Spring IoC as dependency injector framework