Debug.logError(e, module);
pos.showDialog("dialog/error/exception", e.getMessage());
}
if (terminal != null && terminal.get("pushEntitySyncId") != null) {
String syncId = terminal.getString("pushEntitySyncId");
SyncCallbackAdaptor cb = new SyncCallbackAdaptor(pos, syncId, state.getTimestamp("lastUpdatedTxStamp"));
pos.getSession().getDispatcher().registerCallback("runEntitySync", cb);
} else {
// no sync setting; just logout
SecurityEvents.logout(pos);
}