public function save()
    {
        if (!$entityMgr = $this->getEntityManager()) {
            throw new \Exception('Model can not be inserted without an Entity Manager (setEntityManager).');
        }

        if (!$this->getTableName()) {
            throw new \Exception('Model can not be inserted without a defined table name.');
        }

        $stmtManager = $entityMgr->getStatementManager(Simple::class);

        /** @var InsertModel $stmtBuilder */
        $stmtBuilder = $stmtManager->getStatementBuilder(InsertModel::class);

        return $stmtManager
            ->setStatement($stmtBuilder->setModel($this))
            ->setConsistency(\Cassandra::CONSISTENCY_LOCAL_ONE)
            ->execute();
    }