protected function getMetaModel($identifier, $ignoreError)
    {
        // Get the factory.
        $factory = $this->getMetaModelsFactory();

        // Id to name.
        if (is_numeric($identifier)) {
            $identifier = $factory->translateIdToMetaModelName($identifier);
        }

        // Create mm, if yowl is true check if we have really a mm .
        $metaModels = $factory->getMetaModel($identifier);

        // If $ignoreError is off and we have no mm throw a new exception.
        if (!$ignoreError && $metaModels == null) {
            throw new \RuntimeException('Could not find the MetaModels with the name ' . $identifier);
        }

        return $metaModels;
    }