.setContextPath(path)
.setClassLoader(this.getClass().getClassLoader())
.addInitParameter("resteasy.resources", "org.infinispan.rest.Server")
.addInitParameter("resteasy.use.builtin.providers", "true")
.addListener(new ListenerInfo(ResteasyBootstrap.class))
.addMimeMappings(new MimeMapping("html", "text/html"), new MimeMapping("jpg", "image/jpeg"))
.addWelcomePage("index.html")
.setResourceManager(new FileResourceManager(new File(pathManagerInjector.getValue().resolveRelativePathEntry("rest", HOME_DIR)), 1024 * 1024));
callbackHandle = pathManagerInjector.getValue().registerCallback(HOME_DIR, PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
// Add the default servlet for managing static content