public static function render($format, OutputInterface $output, array $rows)
{
$factory = new self();
if (!($renderer = $factory->create($format))) {
throw new InvalidArgumentException(sprintf('Unknown format %s, known formats are: %s', var_export($format, true), implode(',', self::getFormats())));
}
$renderer->render($output, $rows);
}