protected function buildKey($entity, array $pairs)
    {
        $key = [];
        foreach ($pairs as $local => $refer) {
            $key[] = $local . ':' . $this->accessor->getPropertyValue($entity, $refer);
        }

        return implode('-', $key);
    }