Context context = new Context(server, "/", Context.NO_SESSIONS);
Map<String, String> initParams = new HashMap<String,String>();
initParams.put("contextConfigLocation", "file://" + springConfig);
initParams.put("contextClass", NimbusXmlWebApplicationContext.class.getCanonicalName());
context.setInitParams(initParams);
context.addEventListener(new ContextLoaderListener());
FilterHolder filterHolder = new FilterHolder(new DelegatingFilterProxy());
filterHolder.setName("springSecurityFilterChain");
context.addFilter(filterHolder, "/*", Handler.DEFAULT);
final CXFServlet cxfServlet = new CXFServlet();
ServletHolder servletHolder = new ServletHolder(cxfServlet);