Autowired applicationcontext, maybe won't be needed after removing beans