Restful web service Java