Added addRestAnnotation configuration option to add the @Resource annotation