final Server server = new Server(threadPool);
final Connector connector = new ServerConnector(server,
new InstrumentedConnectionFactory(new HttpConnectionFactory(),
REGISTRY.timer("http.connection")));
server.addConnector(connector);
final ServletContextHandler context = new ServletContextHandler();
context.setContextPath("/initial");
context.setAttribute(MetricsServlet.METRICS_REGISTRY, REGISTRY);
context.setAttribute(HealthCheckServlet.HEALTH_CHECK_REGISTRY, new HealthCheckRegistry());