ModuleManagementFacade moduleManagementFacade = ImpalaServletUtils.getModuleManagementFacade(getServletContext());
FrameworkLockHolder frameworkLockHolder = moduleManagementFacade.getFrameworkLockHolder();
try {
frameworkLockHolder.writeLock();
WebApplicationContext wac = createWebApplicationContext();
HttpServlet delegateServlet = this;
this.invoker = getInvoker(wac, delegateServlet, frameworkLockHolder, this.setThreadContextClassLoader);