}
OAuth.OAuthVersion version = providerQualifiers2Version.get(qual);
if (version == null) {
abd.addDefinitionError(new AgoravaException("There is no OAuth version associated to provider related " +
"Qualifier " +
"" + qual));
}
Class clazz = version2ServiceClass.get(version);
if (clazz == null) {
abd.addDefinitionError(new AgoravaException("There is no OAuth Service class for OAuth version " + version));
}
beanRegisterer(clazz, qual, Dependent.class, abd, beanManager, OAuthService.class);
}
// Adding all Provider Related qualifier on Session producer
if (osb == null) {
abd.addDefinitionError(new AgoravaException("Application didn't provided OAuthSession bean. You should add one " +
"via a producer or activate automatic management by adding " + ApplicationResolver.RESOLVER +
"=<application|session|request|cookie> in " +
"agorava.properties file"));
} else {
WrappingBeanBuilder<OAuthSession> wbp = new WrappingBeanBuilder<OAuthSession>(osb, beanManager);