in taverna-osgi-launcher/src/main/java/org/apache/taverna/osgilauncher/OsgiLauncher.java [412:423]
private synchronized void waitForSpringContext(BundleContext context, String springContext,
long timeoutSeconds) {
long timeLeftToWait = timeoutSeconds * 1000;
long startTime = System.currentTimeMillis();
while (!startedSpringContexts.contains(springContext) && timeLeftToWait > 0) {
try {
wait(timeLeftToWait);
} catch (InterruptedException e) {}
timeLeftToWait = timeLeftToWait - (System.currentTimeMillis() - startTime);
}
}