public function referenceGetAction($demAction)
    {
        $result = MageType::REF_ACTION_NO_ACTION;
        if ($demAction == DemType::REF_ACTION_RESTRICT) {
            $result = MageType::REF_ACTION_RESTRICT;
        } else {
            if ($demAction == DemType::REF_ACTION_CASCADE) {
                $result = MageType::REF_ACTION_CASCADE;
            }
        }
        return $result;
    }