code: protected function getMetaModelById($modelId)
      {
          $services     = $this->getServiceContainer();
          $modelFactory = $services->getFactory();
          $name         = $modelFactory->translateIdToMetaModelName($modelId);
  
          return $modelFactory->getMetaModel($name);
      }
docs: Retrieve the MetaModel with the given id.
  
  @param int $modelId The model being processed.
  
  @return IMetaModel