RESTful service implementation in Java