I had a problem with mixing Resource/Autowired