protected function _copyAttributes($sOldId, $sNewId)
    {
        $myUtilsObject = \OxidEsales\Eshop\Core\Registry::getUtilsObject();
        $oDb = \OxidEsales\Eshop\Core\DatabaseProvider::getDb();

        $sQ = "select oxid from oxobject2attribute where oxobjectid = " . $oDb->quote($sOldId);
        $oRs = $oDb->select($sQ);
        if ($oRs !== false && $oRs->count() > 0) {
            while (!$oRs->EOF) {
                // #1055A
                $oAttr = oxNew(\OxidEsales\Eshop\Core\Model\BaseModel::class);
                $oAttr->init("oxobject2attribute");
                $oAttr->load($oRs->fields[0]);
                $oAttr->setId($myUtilsObject->generateUID());
                $oAttr->oxobject2attribute__oxobjectid->setValue($sNewId);
                $oAttr->save();
                $oRs->fetchRow();
            }
        }
    }