Making getMetrics method in class MetricRegistry as protected final instead of private.
This will allow child classes of MetricRegistry to use it, without being able to modify it.