Spring dependency injection, example