/**
  * @param $filename
  * @param DocumentInfo $docInfo
  */
 public function processDocument($filename, DocumentInfo $docInfo)
 {
     $newFilename = $docInfo->createNewFilename();
     if ($docInfo->getPaymentStatus() == PaymentStatus::TO_PAY) {
         $this->moveDocument($this->getIncomingFolder() . '/' . $filename, $this->getToPayFolder() . '/' . $newFilename);
     } else {
         if ($docInfo->getCategory() == Category::PERSONAL) {
             $this->moveDocument($this->getIncomingFolder() . '/' . $filename, $this->getArchivePersonalFolder() . '/' . $newFilename);
         } elseif ($docInfo->getCategory() == Category::DRC) {
             $this->moveDocument($this->getIncomingFolder() . '/' . $filename, $this->getArchiveDRCFolder() . '/' . $newFilename);
         } elseif ($docInfo->getCategory() == Category::THV) {
             $this->moveDocument($this->getIncomingFolder() . '/' . $filename, $this->getArchiveTHVFolder() . '/' . $newFilename);
         } else {
             $this->moveDocument($this->getIncomingFolder() . '/' . $filename, $this->getArchiveUnknownFolder() . '/' . $newFilename);
         }
     }
 }