/** get the name of downloadFile
  * 
  * @param \NetBrothers\Nbdownloader\Domain\Model\Download $download
  * @return string
  */
 public function getDownloadName($download)
 {
     $downloadName = (string) $download->getDownloadName();
     if (strlen($downloadName) > 0) {
         return $downloadName;
     } else {
         return $download->getSource()->getOriginalResource()->getName();
     }
 }