Java rest client xml example