Adding spring dependency injection.