Make RESTful api work on embedded Jetty.