public function getNewMaxId($entityClassname): int
    {
        $maxId = $this->em->createQueryBuilder()
            ->select('MAX(e.id) + 1')
            ->from($entityClassname, 'e')
            ->getQuery()
            ->getSingleScalarResult();
        return (int) $maxId;
    }