@Override
  public MetricRegistry getMetricRegistry() {
    // Each server that calls this mocked interface needs its own metric registry.
    if (createNewRegistry) {
      metricRegistry = new MetricRegistry();
    }
    return metricRegistry;
  }
Return if ssl ports are enabled in this cluster.
ambry-test-utils/src/main/java/com/github/ambry/clustermap/MockClusterMap.java