public function delete($varItem)
    {
        // Determine the id.
        if (is_object($varItem) && ($varItem instanceof Model)) {
            $objModelItem = $varItem->getItem();
        } else {
            $objModelItem = $this->getMetaModel()->findById($varItem);
        }
        if ($objModelItem) {
            $this->getMetaModel()->delete($objModelItem);
        }
    }