public function generate(ClassMetadataDefinition $definition) : string
    {
        $metadata = $this->mappingDriver->loadMetadataForClass(
            $definition->entityClassName,
            $definition->parentClassMetadata
        );

        return $this->metadataExporter->export($metadata);
    }