code: protected function prepareMetaModel()
      {
          $factory            = $this->getFactory();
          $this->objMetaModel = $factory->getMetaModel($factory->translateIdToMetaModelName($this->intMetaModel));
          if (!$this->objMetaModel) {
              throw new \RuntimeException('Could get metamodel id: ' . $this->intMetaModel);
          }
      }
docs: Prepare the MetaModel.
  
  @return void
  
  @throws \RuntimeException When the MetaModel can not be found.