protected function decodeObjectReferences(array &$array)
{
foreach ($array as &$value) {
if (!is_array($value)) {
continue;
}
if (isset($value['__flow_object_type'])) {
$value = $this->persistenceManager->getObjectByIdentifier($value['__identifier'], $value['__flow_object_type'], true);
} else {
$this->decodeObjectReferences($value);
}
}
}