public function prePersist(LifecycleEventArgs $args)
    {

        // update child routes
        $entity = $args->getEntity();

        if (    $entity instanceof RoutableNodeInterface
            &&  $entity->hasAutoNodeRouteGeneration()
        ) {
            $routeManager = $this->container->get('mm_cmf_routing.node_route_manager');
            $entity->addRoute($routeManager->generateAutoNodeRoute($entity));
        }

        return;
    }