RESTful service using jersey framework