protected function getEntityForTagName($entity, $xmlEntry, $tagName, $stackEntity)
    {
        switch ($tagName) {
      case 'repertoire_extra':

        $association = $stackEntity->offsetGet($stackEntity->count() - 1);

        return $association;
        break;
            default:
                return $entity;
                break;
        }
    }