@Produces @ApplicationScoped
    public static IMetricsAccessor provideMetricsAccessor(WarApiManagerConfig config,
                                                          @New NoOpMetricsAccessor noopMetrics, IPluginRegistry pluginRegistry) {
        IMetricsAccessor metrics;
        if (EsUtils.isEsOrJest(config.getMetricsType()) || config.getMetricsType().equals(EsMetricsAccessor.class.getName())) { //$NON-NLS-1$
            metrics = new EsMetricsAccessor(config.getMetricsESClientFactoryConfig());
        } else if ("noop".equals(config.getMetricsType())) { //$NON-NLS-1$
            metrics = noopMetrics;
        } else if (config.getMetricsType().equals(NoOpMetricsAccessor.class.getName())) {
            metrics = noopMetrics;
        } else {
            try {
                metrics = createCustomComponent(IMetricsAccessor.class, config.getMetricsType(),
                        config.getMetricsProperties(), pluginRegistry);
            } catch (Throwable t) {
                System.err.println("Unknown apiman metrics accessor type: " + config.getMetricsType()); //$NON-NLS-1$
                metrics = noopMetrics;
            }
        }
        return metrics;
    }
Attempt to create producer methods for CDI beans.

@author eric.wittmann@redhat.com
manager/api/war/src/main/java/io/apiman/manager/api/war/WarCdiFactory.java