changing autowired things as bean in service class