refactored the code to avoid creation two LifecycleInjector objects (and two root Guice injectors)