protected function registerChooseVoAndGroup($callback, $vosForRegistration, $request)
    {

        $vosId = array();
        $chooseGroupUrl = Module::getModuleURL('perun/perun_identity_choose_vo_and_group.php');

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

        foreach ($vosForRegistration as $vo) {
            array_push($vosId, $vo->getId());
        }

        HTTP::redirectTrustedURL(
            $chooseGroupUrl,
            array(
                self::REGISTER_URL_BASE => $this->registerUrlBase,
                'spEntityId' => $this->spEntityId,
                'vosIdForRegistration' => $vosId,
                self::INTERFACE_PROPNAME => $this->interface,
                'callbackUrl' => $callback,
                'SPMetadata' => $request['SPMetadata'],
                'stateId' => $stateId
            )
        );
    }