static void clearRegistry(final MetricRegistry registry) {
        LOGGER.info("Clearing metrics registry");
        registry.getNames()
                .forEach(registry::remove);
    }
Register a metric with the default metric registry
stroom-util/src/main/java/stroom/util/metrics/MetricsUtil.java