protected function handleAclError(AclException $e) {
        if(!empty($e->getMessage())) {
            $this->addError(new Exception($e->getMessage(), 401));
        }
        $entity = $e->getEntity();
        if(!is_null($entity)) {
            foreach ($entity->getMessages() as $message) {
                $this->addError(new Exception($message->getMessage(), 401));
            }
        }
    }