protected function isValidIdentity($attribute, SecurityIdentityInterface $sid)
    {
        return ($this->getValidType() === $sid->getType() || \in_array($this->getValidType(), class_implements($sid->getType()), true))
            && substr($attribute, \strlen($this->prefix)) === OrganizationalUtil::format($sid->getIdentifier());
    }