protected function storeValues(array $values, $entity, Property $property, Metadata $metadata)
 {
     $return = null;
     if (!$entity instanceof Route) {
         return null;
     }
     foreach ($values as $locale => $value) {
         if ($this->defaultLocale === $locale) {
             $return = $value;
         } else {
             $translationRoute = $this->getRepository('EnhavoTranslationBundle:TranslationRoute')->findOneBy(['type' => $entity->getType(), 'typeId' => $entity->getTypeId()]);
             if ($translationRoute === null || $entity->getType() === null || $entity->getTypeId() === null) {
                 $route = new Route();
                 $route->setContent($entity->getContent());
                 $translationRoute = new TranslationRoute();
                 $translationRoute->setLocale($locale);
                 $translationRoute->setRoute($route);
                 $this->updateRefIds[] = $translationRoute;
             }
             /** @var Route $route */
             $route = $translationRoute->getRoute();
             $route->setStaticPrefix($value);
             $translationRoute->setPath($value);
         }
     }
     return $return;
 }