public static function GetInstance($sId)
    {
        $oElement = TdbPkgShopAffiliate::GetNewInstance();
        $oElement->Load($sId);
        if (!empty($oElement->sqlData['class'])) {
            $sClassName = $oElement->sqlData['class'];
            $oElementNew = new $sClassName();
            $oElementNew->LoadFromRow($oElement->sqlData);
            $oElement = $oElementNew;
        }

        return $oElement;
    }