public MetricConsumer newInstance() {
        if (factories.length == 1) {
            return factories[0].newInstance();
        }
        MetricConsumer[] consumers = new MetricConsumer[factories.length];
        for (int i = 0; i < factories.length; ++i) {
            consumers[i] = factories[i].newInstance();
        }
        return new ForwardingMetricConsumer(consumers);
    }
<p>The purpose of this class it to be the only provider for the <code>MetricConsumer</code> interface in a component
graph. This component is automatically registered in the graph by the config server. Configuring a different
<code>MetricConsumer</code> is done by registering one or more {@link MetricConsumerFactory} in the services-file.</p>

<p>Because this class depends on the {@link ComponentRegistry} of {@link MetricConsumerFactory}, any added or removed
{@link MetricConsumerFactory} will cause this component to be reconfigured. Because {@link MetricProvider} depends on
this class, which means any component that uses <code>Metric</code> will be reconfigured. Any component that depends
directly on <code>MetricConsumer</code> will also be reconfigured.</p>

@author Simon Thoresen Hult
container-disc/src/main/java/com/yahoo/container/jdisc/metric/MetricConsumerProvider.java