/**
  * @throws \TYPO3\CMS\Extbase\Persistence\Exception\IllegalObjectTypeException
  * @return void
  */
 public function cleanupCommand()
 {
     $entriesToCleanUp = $this->entryRepository->findEntriesToCleanUp($this->configuration->get(System\Configuration::CONF_SECONDS_TILL_RESET), $this->configuration->get(System\Configuration::CONF_MAX_FAILURES), $this->configuration->get(System\Configuration::CONF_RESTRICTION_TIME));
     foreach ($entriesToCleanUp as $entryToCleanUp) {
         $this->entryRepository->remove($entryToCleanUp);
     }
     $this->persistenceManager->persistAll();
 }
 /**
  * @return void
  */
 public function removeEntry()
 {
     if ($this->hasEntry()) {
         $this->entryRepository->remove($this->entry);
         $this->persistenceManager->persistAll();
     }
     $this->clientRestricted = false;
     unset($this->entry);
 }