private function initializeObjectDataPolicies(PolicyIdListInterface $policies)
    {
        foreach ($policies->getPolicyIds() as $policyId) {
            $policy = $this->getSession()->getObject($this->getSession()->createObjectId($policyId));
            if ($policy instanceof PolicyInterface) {
                $this->policies[] = $policy;
            }
        }

        $this->extensions[(string) ExtensionLevel::POLICIES] = $policies->getExtensions();
    }