building RESTful service using Jersey