Iface iface = BlurUtil.recordMethodCallsAndAverageTimes(shardServer, Iface.class, false);
if (httpServer != null) {
WebAppContext context = httpServer.getContext();
context.addServlet(new ServletHolder(new TServlet(new Blur.Processor<Blur.Iface>(iface),
new TJSONProtocol.Factory())), "/blur");
context.addServlet(new ServletHolder(new JSONReporterServlet()), "/livemetrics");
if (enableJsonReporter) {
JSONReporter.enable("json-reporter", 1, TimeUnit.SECONDS, 60);
}
}