public function setViewModel(ViewModel $viewModel) {
        $viewModel->setVariable("formName", $this->getName());
        if($this->getFormAction()!=""){
        $viewModel->setVariable("formAction", $this->getFormAction());
        }
        else {
            throw new \Exception("You must provide a formAction");
        }
        $wizardFormCurrentStepViewModel = new ViewModel();
        $wizardFormCurrentStepViewModel->setTemplate("wizard/wizardFormCurrentStep");
        $wizardFormCurrentStepViewModel->setVariable(Wizard::WIZARD_CURRENT_STEP_IDENTIFIER, $this->getName());
        $viewModel->addChild($wizardFormCurrentStepViewModel, "wizardFormCurrentStep");
        $this->viewModel = $viewModel;
    }