XmlWebApplicationContext webCtx = new XmlWebApplicationContext();
webCtx.setResourceLoadingExtender(new ResourceLoadingSupport(webCtx));
webCtx.setConfigLocation(new File(srcdir, configFile).toURI().toString());
webCtx.setServletContext(servletContext);
webCtx.refresh();
parentFactory = webCtx;
factory = webCtx;
}