code: public WaitDialogStatements waitDialog()
  	{
  		Integer id = Session.get().nextSequenceValue();
  
  		JsStatement statement = new JsStatement();
  		statement.append("$.ui.dialog.wiquery.waitDialog(");
  		statement.append(id.toString() + ", ");
  		statement.append(DialogUtilsLanguages.getDialogUtilsLiteral(DialogUtilsLanguages
  			.getDialogUtilsLanguages(getLocale())) + ", ");
  		statement.append(JsUtils.quotes(RequestCycle.get().urlFor(WAIT_IMG, null)) + ")");
  
  		WaitDialogStatements wait = new WaitDialogStatements();
  		wait.setOpen(statement);
  		wait.setClose(new JsStatement().$(null, "#dialog" + id).chain("dialog",
  			JsUtils.quotes("close")));
  
  		return wait;
  	}
docs: Method creating a waiting dialog
  
  @return a {@link WaitDialogStatements}