long start = System.currentTimeMillis();
try {
if (logger.isLoggable(level)) {
logger.log(level, "Running Startup services " + i.type());
}
Startup startup = i.get();
if (logger.isLoggable(level)) {
logger.log(level, "Startup services finished" + startup);
}
// the synchronous service was started successfully, let's check that it's not in fact a FutureProvider
if (startup instanceof FutureProvider) {