private function initSyncStorage(ContainerBuilder $container, array $config)
    {
        $availableStorages = array_keys($config['sync']['sync_storage']);
        $syncStorageStorage = current($availableStorages);
        if (empty($syncStorageStorage)) {
            throw new LogicException('Data synchronization storage must be set.');
        }

        $syncStorageStorageConfig = $config['sync']['sync_storage'][$syncStorageStorage];

        switch ($syncStorageStorage) {
            case SyncStorage::STORAGE_MYSQL:
                $this->initSyncStorageForMysql($container, $syncStorageStorageConfig);
                break;
            default:
                throw new LogicException("Unknown storage is set: {$syncStorageStorage}");
        }
    }