public LatencyTracker createLatencyTracker(String name, StatisticsManager statisticsManager) {
        return new SiddhiLatencyMetric(name, ((SiddhiStatisticsManager) statisticsManager).getRegistry());
    }
Factory class to create Trackers and Managers.
modules/siddhi-core/src/main/java/io/siddhi/core/util/statistics/metrics/SiddhiMetricsFactory.java