Java based RESTful web service