/**
  * Will attempt to attach any static data to the given dto if
  * the attach static data flag is set.
  *
  * @param AbstractDto $dto
  * @return AbstractDto
  */
 protected function attachStaticDataToDto(AbstractDto $dto)
 {
     if ($this->attachStaticData) {
         $dto->loadStaticData($this->staticData);
     }
     return $dto;
 }