public function onBefore(AbstractRequestEvent $event)
 {
     $this->addConfigSettings($event->getRequest()->getConfig());
     if (!$this->state->isOk($this->name)) {
         $this->handleErroneousState($event);
     }
 }