if (session != OAuthSession.NULL) {
qualifier = session.getServiceQualifier();
} else if (AgoravaContext.getListOfServices().contains(provider)) {
qualifier = AgoravaContext.getServicesToQualifier().get(provider);
} else {
throw new AgoravaException("Current OAuthSession is NULL and Request doesn't contain " + AgoravaConstants
.PROVIDER_PARAM + " parameter");
}
if (qualifier == null) {
throw new AgoravaException("No qualifier found for the following provider " + provider);
}
return authenticators.select(qualifier).get();
}