155156157158159160161162163164165
@Override public RestResponse execute(Object controller) throws Exception { if (controller instanceof Options) { Options options = (Options) controller; return options.doOptions(); } return super.execute(controller); } }
119120121122123124125126127128129
620621622623624625626627628629630
boolean retry = true; while (retry) { try (final Tx tx = app.tx()) { result = resource.doOptions(); tx.success(); retry = false; } catch (DeadlockDetectedException ddex) { retry = true;