Spring bean not loading while parsing BPMN start event

Hi,

i have a class which implements AbstractBpmnParseListner. In this class i am parsing start event method(parseStateEvent method).
In this method i would like to query account repository specific to my project by passing some values like account id=1.
when i declared like below, in my parseListener, i see spring not assigned bean reference to below delcaration. It’s showing as null.
@Autowired
private AccountRepository accountRepository;
Please help whether i am missing anyting?