protected function registerDirectly($request, $callback, $registerUrL, $vo = null, $group = null)
    {
        $params = array();
        if (!is_null($vo)) {
            $params['vo'] = $vo->getShortName();
            if (!is_null($group)) {
                $params['group'] = $group->getName();
            }
        }
        $params[self::TARGET_NEW] = $callback;
        $params[self::TARGET_EXISTING] = $callback;
        $params[self::TARGET_EXTENDED] = $callback;

        $id = State::saveState($request, 'perun:PerunIdentity');

        if (in_array($this->spEntityId, $this->listOfSpsWithoutInfoAboutRedirection)) {
            HTTP::redirectTrustedURL($registerUrL, $params);
        }

        $url = Module::getModuleURL('perun/unauthorized_access_go_to_registration.php');
        HTTP::redirectTrustedURL(
            $url,
            array(
                'StateId' => $id,
                'SPMetadata' => $request['SPMetadata'],
                'registerUrL' => $registerUrL,
                'params' => $params
            )
        );
    }