in winegrower-core/src/main/java/org/apache/winegrower/framework/WinegrowerFramework.java [90:104]
public FrameworkEvent waitForStop(final long timeout) throws InterruptedException {
final Clock clock = Clock.systemUTC();
final Instant end = clock.instant().plusMillis(timeout);
while (clock.instant().isBefore(end)) {
switch (state) {
case ACTIVE:
case RESOLVED:
case INSTALLED:
Thread.sleep(250);
default:
break;
}
}
return new FrameworkEvent(state, getFrameworkBundle(), null);
}