/**
  * {@inheritdoc}
  */
 public function denormalize($data, $class, $format = null, array $context = array())
 {
     if ($data === null || $data === '') {
         return null;
     }
     $context = $context + ['use_relative_media_path' => false];
     return $this->manager->createFromFilename($data, $context['use_relative_media_path']);
 }