}
public synchronized void shutdown() {
if (injector != null) {
Ninja ninja = injector.getInstance(Ninja.class);
ninja.onFrameworkShutdown();
injector = null;
ninja = null;
} else {
logger.error("Shutdown of Ninja not clean => injector already null.");
}