protected function getObjectDataManager(Request $request)
    {
        $objectDataManager = $this->container->get(ObjectDataManager::class);
        $resolver = new OptionsResolver();
        $resolver->setDefaults([
            "folder" => null,
        ]);
        $resolver->setRequired(["returnUrl","objectId","objectType"]);
        $config = $resolver->resolve($request->get("_conf"));
        $objectDataManager->configure($config["objectId"],$config["objectType"]);
        $objectDataManager->documents()->folder($config["folder"]);
        $this->config = $config;
        return $objectDataManager;
    }