Learning RESTfull web services in java