public static function loadMetadata(DoctrineClassMetaData $metaData): void
    {
        try {
            self::getDoctrineStaticMeta()->setMetaData($metaData)->buildMetaData();
        } catch (\Exception $e) {
            throw new DoctrineStaticMetaException(
                'Exception in ' . __METHOD__ . ': ' . $e->getMessage(),
                $e->getCode(),
                $e
            );
        }
    }