Java restfull service to tutorial