use of autowired things as bean in service layer