private IdentitySource GetIdentitySource(string name)
{
if (String.IsNullOrEmpty(name)) {
return null;
}
return (from source in IdentitySources
where String.Equals(source.MetadataView.Name, name, StringComparison.OrdinalIgnoreCase)
select source.GetExportedObject()).SingleOrDefault();
}