java restful service example