public function save(\BackBee\Bundle\Registry $registry)
    {
        if (false === $this->getEntityManager()->contains($registry)) {
            $this->getEntityManager()->persist($registry);
        }

        $this->getEntityManager()->flush($registry);

        return $registry;
    }