public static OpenIdProviderType getBestSuitedProvider(String openId) {
if (new FedoraOpenIdProvider().accepts(openId)) {
return OpenIdProviderType.Fedora;
} else if (new GoogleOpenIdProvider().accepts(openId)) {
return OpenIdProviderType.Google;
} else if (new YahooOpenIdProvider().accepts(openId)) {
return OpenIdProviderType.Yahoo;
} else {
return OpenIdProviderType.Generic;
}
}