/**
  * @see
  *     org.olat.core.gui.components.form.flexible.impl.FormBasicController#formOK(org.olat.core.gui.UserRequest)
  */
 @Override
 @SuppressWarnings("unused")
 protected void formOK(final UserRequest ureq) {
   // this method is called if the form has validated
   // which means that all form items are filled without error
   // and all complex business rules validated also to true.
   //
   // typically the form values are now read out and persisted
   //
   // in our case, save value to data object and prepare a confirm page
   personData.setFirstName(firstName.getValue());
   personData.setLastName(lastName.getValue());
   personData.setInstitution(institution.getValue());
   personData.setReadOnly(true);
   // show the same form in readonly mode.
   confirmController = new GuiDemoFlexiForm(ureq, getWindowControl(), personData);
   confirm = createVelocityContainer("confirm");
   confirm.put("data", confirmController.getInitialComponent());
   initialPanel.pushContent(confirm);
 }