You could probably just TimeUnit.SECONDS.sleep(21) here.