@SuppressWarnings("unchecked")
public GuiceDeploymentConfiguration() {
LifecycleManagersRegistry lifecycleManagersRegistry = new LifecycleManagersRegistry();
setOfFactoryRegistry(lifecycleManagersRegistry);
Injector injector = Guice.createInjector(createModules());
lifecycleManagersRegistry.addFactoryFactory(new GuiceInjectorLifeCycleManager(injector));
}