private static function AttachObligatoryParams($url, array $oblParams, array $params)
    {
        foreach ($oblParams as $oblParam) {

            $value = '';
            if (!array_key_exists($oblParam, $params)) {
                $value = Request::GetData($oblParam);
            }
            else {
                $value = $params[$oblParam];
            }
            if ($value) {
                $url = str_replace('{' . $oblParam . '}', $value, $url);
            }
        }
        return $url;
    }