if (ninjaMode == null) {
NinjaPropertiesImpl ninjaProperties = new NinjaPropertiesImpl(
NinjaModeHelper.determineModeFromSystemPropertiesOrProdIfNotSet());
ninjaBootup = new NinjaBootstrap(
ninjaProperties);
} else {
// in this case servletContext can be null
NinjaPropertiesImpl ninjaProperties = new NinjaPropertiesImpl(ninjaMode);
ninjaBootup = new NinjaBootstrap(ninjaProperties);
}
ninjaBootup.boot();
router = ninjaBootup.getInjector().getInstance(Router.class);