code: public function generateCustomId(CustomIdentifiable $entity, bool $overwrite = false)
      {
          if (null === $entity->getCustomId() || $overwrite) {
              $customId = uniqid();
              $entity->setCustomId($customId);
          }
  
          return $this;
      }
docs: Generate entity custom id, if none present
  
  @param \Ds\Component\Model\Type\CustomIdentifiable $entity
  @param boolean $overwrite
  @return \Ds\Component\Entity\Service\IdService