@Override public void accept(HealthIndicatorStatus t, Throwable u) { try { if (t != null) { status = t; } else if (u != null) { status = HealthIndicatorStatuses.unhealthy(getName(), u); } else { status = HealthIndicatorStatuses.unhealthy(getName(), new Exception("Unknown")); } } finally { busy.set(false); } } });