Java restfull service tutorial