private function checkCollectionCreationOptions(\JPC\MongoDB\ODM\Annotations\Mapping\Document $annotation)
    {
        $options = [];
        if ($annotation->capped) {
            $options["capped"] = true;
            $options["size"] = $annotation->size;

            if ($annotation->max != false) {
                $options["max"] = $annotation->max;
            }
        }

        $this->collectionInfo->setCreationOptions($options);
    }