void () { getBuilder().getReady(this).doWhenDone(new NamedRunnable("on done") { @Override public void run() { wasUiNull.set(getBuilder().getUi() == null); done.set(true); } }).doWhenRejected(new NamedRunnable("on rejected") { @Override public void run() { wasUiNull.set(getBuilder().getUi() == null); rejected.set(true); } }).doWhenProcessed(new NamedRunnable("on processed") { @Override public void run() { processed.set(true); } }); }