private function processShardConfigurationsIfExist(array &$serviceConnArguments, array $resolvedConnConfig)
    {
        if (array_key_exists('shards', $serviceConnArguments)) {
            foreach ($serviceConnArguments['shards'] as $shardName => &$shardConfig) {
                $this->replaceConnectionArguments($shardConfig, $resolvedConnConfig['shards'][$shardName]);
            }
        }
    }