private function processOptionAnnotation(\JPC\MongoDB\ODM\Annotations\Mapping\Option $annotation)
    {
        $options = [];
        if (isset($annotation->writeConcern)) {
            $options["writeConcern"] = $annotation->writeConcern->getWriteConcern();
        }

        if (isset($annotation->readConcern)) {
            $options["readConcern"] = $annotation->readConcern->getReadConcern();
        }

        if (isset($annotation->readPreference)) {
            $options["readPreference"] = $annotation->readPreference->getReadPreference();
        }

        if (isset($annotation->typeMap)) {
            $options["typeMap"] = $annotation->typeMap;
        }

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