public function handleUpdate(PostPersistModelEvent $event)
    {
        if (!$this->wantToHandle($event)) {
            return;
        }

        $old      = $event->getOriginalModel();
        $new      = $event->getModel();
        $oldTable = $old ? $old->getProperty('tableName') : null;
        $newTable = $new->getProperty('tableName');

        // Table name changed?
        if ($oldTable !== $newTable) {
            if (!empty($oldTable)) {
                $this->tableManipulator->renameTable($oldTable, $newTable);
            } else {
                $this->tableManipulator->createTable($newTable);
            }
        }

        $this->tableManipulator->setVariantSupport($newTable, $new->getProperty('varsupport'));
    }