}
private Map<ValueProviderType, GlobalValueProvider> getGlobalProviders() {
// load any @Primary GlobalValueProviderAdatper first, to give it's
// implementations precedence
GlobalValueProviderAdapter primaryFactory = ServiceLocator.get().get(GlobalValueProviderAdapter.class);
Map<ValueProviderType, GlobalValueProvider> instances = new EnumMap<ValueProviderType, GlobalValueProvider>(
ValueProviderType.class);
for (GlobalValueProvider g : primaryFactory.createValueProviders()) {
instances.put(g.getValueProviderKey(), g);
}
Collection<GlobalValueProviderAdapter> factories = ServiceLocator.get()
.getAll(GlobalValueProviderAdapter.class);
for (GlobalValueProviderAdapter factory : factories) {