code: protected void setForm(final T bean, final AjaxRequestTarget target) {
          LOG.debug("Setting form to {}", bean);
  
          // update the model with the new bean
          formModel.setObject(bean);
  
          // add the form to the target
          target.add(form);
  
          // update the button
          updateSaveButton.setModel(Model.of("Update"));
          target.add(updateSaveButton);
      }
docs: Sets the form to the bean passed in, updating the form via AJAX.
  @param bean the bean to set the form to.
  @param target the target of whatever triggers the form fill action.