/**
  * @param object          $entity
  * @param PropertyMapping $mapping
  *
  * @return string
  */
 public function name($entity, PropertyMapping $mapping)
 {
     $extension = $this->getExtension($mapping->getFile($entity));
     if ($mapping->getUriPrefix()) {
         $namePieces[] = $mapping->getUriPrefix();
     }
     $namePieces[] = sprintf('%s.%s', str_replace('.', '', uniqid('', true)), $extension);
     $name = implode('/', $namePieces);
     return $name;
 }