public function configure(MetaModelsServiceContainer $serviceContainer)
    {
        $serviceContainer
            ->setEventDispatcher(function () {
                return $this->container->get('event_dispatcher');
            })
            ->setDatabase(function () {
                return $this->container->get('cca.legacy_dic.contao_database_connection');
            })
            ->setAttributeFactory(function () {
                return $this->container->get('metamodels.attribute_factory');
            })
            ->setFactory(function () {
                return $this->container->get('metamodels.factory');
            })
            ->setFilterFactory(function () {
                return $this->container->get('metamodels.filter_setting_factory');
            })
            ->setRenderSettingFactory(function () {
                return $this->container->get('metamodels.render_setting_factory');
            })
            ->setCache(function () {
                return $this->container->get('metamodels.cache');
            });

        return $serviceContainer;
    }