example rest service returning a resource: http://spring.io/guides/gs/rest-service/