server = new Server(getPort());
Context context = new Context(server, getBasePath(), Context.SESSIONS);
Map<String, String> params = new HashMap<String, String>();
params.put(ContextLoaderListener.CONFIG_LOCATION_PARAM, getSpringContextLocation());
context.setInitParams(params);
context.addEventListener(new ContextLoaderListener());
context.addEventListener(new RequestContextListener());
context.addServlet(sh, getServletMapping());
server.start();
LOG.info("Jetty server running.");
this.applicationContext = WebApplicationContextUtils.getWebApplicationContext(context.getServletContext());