private function getSystem()
    {
        $system = $this->suluSystem;
        $request = $this->requestStack->getCurrentRequest();

        if (null !== $request
            && $request->attributes->has('_sulu')
            && null !== ($webspace = $request->attributes->get('_sulu')->getAttribute('webspace'))
            && null !== ($security = $webspace->getSecurity())
        ) {
            $system = $security->getSystem();
        }

        return $system;
    }