public function convertToModel()
    {
        $unit = new \Liip\TranslationBundle\Model\Unit(
            $this->getDomain(),
            $this->getKey(),
            $this->getMetadata()
        );
        foreach ($this->getTranslations() as $translation) {
            $unit->setTranslation($translation->getLocale(), $translation->getValue());
        }

        return $unit;
    }