}
private AuthenticationProvider getAuthenticationProvider() {
String p = endpointProperties.getProperty("auth.provider");
if ("mongo".equals(p)) {
return new MongoAuthenticationProvider(mongo, endpointProperties);
}
return AuthenticationProviderFactory
.getAuthenticationProvider(endpointProperties);
}