using autowired instead of xml dependency injection to solve a weird issue with "invalid setter method"