protected function pathsAreEqual($permissionAuthzGroup, $authzGroup)
    {
        $permissionAuthzGroupPath = rtrim(strtok($permissionAuthzGroup, '?'), '/');
        $authzGroupPath = rtrim(strtok($authzGroup, '?'), '/');

        return $this->matchAuthzGroupPaths($permissionAuthzGroupPath, $authzGroupPath) ||
            $this->matchAuthzGroupPaths($authzGroupPath, $permissionAuthzGroupPath);
    }