for (ServletBase servlet : servlets.values()) {
if (servlet instanceof AllOperationMetrics.Provider) {
metrics.add((AllOperationMetrics.Provider) servlet);
}
}
final BackgroundMetricsAccessor metricAcc = constructMetricsAccessor(metrics);
servlets.put(PathType.NODE_METRICS, constructNodeMetricsServlet(metricAcc));
return new ServiceDispatchServlet<K,E,PathType>(_cluster, null, _serviceStuff, servlets);
}