Example of RESTful web services with JAX-RS