code: protected void swapFragments(final AjaxRequestTarget target, final Form<?> form)
  	{
  		if (modeContext.equals(ModeContext.VIEW_MODE))
  		{
  			onSwapToEdit(target, form);
  		}
  		else
  		{
  			onSwapToView(target, form);
  		}
  	}
docs: Swaps the fragments.
  
  @param target
  the target
  @param form
  the form