final Execution exec =
new ExecutionImpl(_ctx, request, response, desktop, null);
if (sid != null)
((ExecutionCtrl)exec).setRequestId(sid);
final AuWriter out = AuWriters.newInstance();
out.setCompress(_compress);
out.open(request, response,
desktop.getDevice().isSupported(Device.RESEND) ?
getProcessTimeout(config.getResendDelay()): 0);
//Note: getResendDelay() might return nonpositive
try {
wappc.getUiEngine().execUpdate(exec, aureqs, out);
} catch (RequestOutOfSequenceException ex) {
log.warning(ex.getMessage());
response.setHeader("ZK-SID", sid);
response.setIntHeader("ZK-Error", AuResponse.SC_OUT_OF_SEQUENCE);
}
out.close(request, response);
}