if (authenticatorClass != null) {
return authenticators.select(authenticatorClass).get();
}
if (!Strings.isEmpty(authenticatorName)) {
Instance<Authenticator> selected = authenticators.select(new NamedLiteral(authenticatorName));
if (selected.isAmbiguous()) {
log.error("Multiple Authenticators found with configured name [" + authenticatorName + "]");
return null;
}