// after dispatching, commit (docu)
DBFactory.getInstance().commit();
// add the new URL to the browser history, but not if the klick resulted in a new browser window (a href .. target=...) or in a download (excel or such)
DispatchResult dr = ureq.getDispatchResult();
MediaResource tMr = dr.getResultingMediaResource();
Window tWin = dr.getResultingWindow();
if (tMr == null && tWin == null) {
addToHistory(new HistoryEntry(ureq));
}
wbackofficeImpl.fireCycleEvent(END_OF_DISPATCH_CYCLE);