if (!CarbonUtils.isRunningInStandaloneMode()) {
int waitFor = 5;
log.info("Waiting for " + waitFor + " sec before initiating restart");
Thread.sleep(waitFor * 1000); // The H2 DB connections do not get closed if this is not done
}
new Thread(new FrameworkRestarter()).start();
} catch (Exception e) {
String msg = "Cannot set server to restarting mode";
log.error(msg, e);
}
}