Practice Java Restful Service