using RestfulController instead of @Resource annotation