void () { if (this instanceof InvokerSupplier && THRESHOLD > Math.random()) { // sometimes throw an exception to cancel current operation if (PRINT) System.out.println("interrupt access to model:" + toString()); throw new ProcessCanceledException(); } if (delay > 0) { try { Thread.sleep(delay); } catch (InterruptedException ignored) { } } }