context.addServletMapping("/", "default");
context.addMimeMapping("html", "text/html");
context.addMimeMapping("jpg", "image/jpeg");
// Add the Resteasy servlet dispatcher for handling REST requests
HttpServletDispatcher hsd = new HttpServletDispatcher();
Wrapper hsdWrapper = context.createWrapper();
hsdWrapper.setName("Resteasy");
hsdWrapper.setServlet(hsd);
hsdWrapper.setServletClass(hsd.getClass().getName());
context.addChild(hsdWrapper);
context.addServletMapping("/rest/*", "Resteasy");
// Inject cache manager and configuration