viewState.setSkipUpdate(true);  ViewDestination destination = viewState.getDestination("cancel");  if (destination == null) { destination = viewState.getInputDestination(); }  viewState.setCurrentDestination(destination); viewState.invalidate();
viewState.setCurrentDestination("cancel"); viewState.cancel();
    public static void doCancel(IViewState viewState) {        viewState.setSkipUpdate(true);                ViewDestination destination = viewState.getDestination("cancel");                if (destination == null) {            destination = viewState.getInputDestination();        }            viewState.setCurrentDestination(destination);        viewState.invalidate();    }