Set<Bean<?>> beans = beanManager.getBeans(ProviderConfigOauth.class, new AnyLiteral());
for (Bean<?> bean : beans) {
Annotation qual = getSingleProviderRelatedQualifier(bean.getQualifiers(), false);
CreationalContext<?> ctx = beanManager.createCreationalContext(null);
final ProviderConfigOauth tierConfig = (ProviderConfigOauth) beanManager.getReference(bean,
ProviderConfigOauth.class, ctx);
String name = tierConfig.getProviderName();
getServicesToQualifier().put(name, qual);
ctx.release();
}
if (providerQualifiersConfigured.size() != getServicesToQualifier().size())
log.log(WARNING, "Some Service modules present in the application are not configured so won't be available");