protected function isGranted($specificRole = 'LIST', $genericRole = null)
    {
        $securityContext = $this->getSecurityContext();

        if ($securityContext->isGranted(is_null($genericRole) ? $this->getSecurityRoleAdmin() : $genericRole)) {
            return true;
        }

        if ($securityContext->isGranted($this->getSpecificRoleFormatted($specificRole))) {
            return true;
        }

        return false;
    }