{
Logger.error("error while syncing konto",e);
GUI.getStatusBar().setErrorText(i18n.tr("Fehler beim Synchronisieren des Kontos"));
}
final AbstractView currentView = GUI.getCurrentView();
Application.getController().start(new BackgroundTask() {
public void run(ProgressMonitor monitor) throws ApplicationException
{
monitor.setStatus(ProgressMonitor.STATUS_RUNNING);
monitor.setStatusText(i18n.tr("Starte Synchronisierung"));
QueryMessage msg = new QueryMessage("hibiscus.konto.sync",new Object[]{k,monitor});
Application.getMessagingFactory().getMessagingQueue("jameica.scripting").sendSyncMessage(msg);
// GUI neu laden
AbstractView newView = GUI.getCurrentView();
if (newView == currentView)
currentView.reload();
monitor.setPercentComplete(100);
Object value = msg.getData();