/**
  * Returns a converter.
  *
  * @param string $index
  * @param string $type
  * @return Converter
  */
 protected function getConverter($index, $type)
 {
     $metadata = $this->typesMetadataCollection->getTypeMetadata($type, $index);
     $converter = new Converter($metadata, $this->languageSeparator);
     return $converter;
 }