code: protected function attributeIdToName(IMetaModel $metaModel, $attributeId)
      {
          if (null === $attribute = $metaModel->getAttributeById($attributeId)) {
              throw new \RuntimeException(sprintf(
                  'Could not retrieve attribute %s from MetaModel %s.',
                  $attributeId,
                  $metaModel->getTableName()
              ));
          }
  
          return $attribute->getColName();
      }
docs: Extract the attribute instance from the MetaModel.
  
  @param IMetaModel $metaModel   The MetaModel instance.
  
  @param string     $attributeId The attribute id.
  
  @return string
  
  @throws \RuntimeException When the attribute could not be retrieved.