RESTful service using JavaEE