public function createBatch(EntityInterface $entity)
    {
        if (is_null($this->putBatch)) {
            $this->putBatch = WriteRequestBatch::factory($this->dynamoDb);
        }
        $this->putBatch->add(new PutRequest(Item::fromArray($entity->getArrayCopy()), $this->getEntityTable($entity)));
    }