Allow either Resource or Autowired to define a StatefulController