Java restful service tutorial.