context.setDocBase(pathManagerInjector.getValue().resolveRelativePathEntry("rest", HOME_DIR));
callbackHandle = pathManagerInjector.getValue().registerCallback(HOME_DIR,
PathManager.ReloadServerCallback.create(), PathManager.Event.UPDATED, PathManager.Event.REMOVED);
final Loader loader = new WebCtxLoader(this.getClass().getClassLoader());
Host host = hostInjector.getValue().getHost();
loader.setContainer(host);
context.setLoader(loader);
context.setInstanceManager(new LocalInstanceManager());
// Configuration for Resteasy bootstrap
addContextApplicationParameter(context, "resteasy.resources", "org.infinispan.rest.Server");