more complete example using Resteasy