Replaced @Autowired with @Resource.

AFDP-68

This is to resolve a code review comment.