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();
    }