void () { try { DocumentCommitThread.getInstance().waitForAllCommits(100, TimeUnit.SECONDS); } catch (ExecutionException | InterruptedException | TimeoutException e) { throw new RuntimeException(e); } }