private function configureMenus(array $menus, ContainerBuilder $container)
    {
        if (!$container->hasDefinition('ekyna_admin.menu.pool')) {
            return;
        }

        $pool = $container->getDefinition('ekyna_admin.menu.pool');

        foreach ($menus as $groupName => $groupConfig) {
            $pool->addMethodCall('createGroup', [[
                'name' => $groupName,
                'label' => $groupConfig['label'],
                'icon' => $groupConfig['icon'],
                'position' => $groupConfig['position'],
                'domain' => $groupConfig['domain'],
                'route' => $groupConfig['route'],
            ]]);
            foreach ($groupConfig['entries'] as $entryName => $entryConfig) {
                $pool->addMethodCall('createEntry', [$groupName, [
                    'name' => $entryName,
                    'route' => $entryConfig['route'],
                    'label' => $entryConfig['label'],
                    'resource' => $entryConfig['resource'],
                    'position' => $entryConfig['position'],
                    'domain' => $entryConfig['domain'],
                ]]);
            }
        }
    }