RESTful java training