public IEnumerable<ICommandValidator> GetValidators(ICommand command)
{
if (command == null) throw new ArgumentNullException("command");
var validatorType = typeof (ICommandValidator<>).MakeGenericType(command.GetType());
return locator.GetAllInstances(validatorType).Cast<ICommandValidator>();
}