public final function DoShareIdentity($Entity, $OtherEntity)
{
$EntityMap = $this->VerifyEntity(__METHOD__, $Entity);
$EntityType = $EntityMap->GetEntityType();
if (!$OtherEntity instanceof $EntityType) {
return false;
} else {
return $EntityMap->Identity($Entity)->Matches($EntityMap->Identity($OtherEntity));
}
}