protected function getConfig(array $config) : array
{
$keys = ['sources', 'destinations', 'processors', 'namers'];
foreach ($keys as $key) {
if (!array_key_exists($key, $config)) {
throw new InvalidArgumentException("Missing configuration key [{$key}].");
}
}
return $config;
}