public function isSecondaryLocal()
    {
        if (!$this->isSecondary()) {
            return false;
        }

        $hashKey        = $this->getHashKey()->getPropertyMetadata()->name;
        $hashKeyPrimary = $this->class->getIndex()->getHashKey()->getPropertyMetadata()->name;

        return $hashKey === $hashKeyPrimary;
    }