my Java Restful practice