Example the spring integration
Integrating with Spring using Groovy-Restlet is straightforward.
userResource is defined spring definition file as followed:
If spring context is specified when creating
GroovyRestlet instance, Spring'` AutowireCapableBeanFactory will be used to create that instance and autowire all necessary properties.