applicationRegistry = (ApplicationRegistry)container.getComponentInstanceOfType(ApplicationRegistry.class);
binder = (ResourceBinder)container.getComponentInstanceOfType(ResourceBinder.class);
requestHandler = (RequestHandlerImpl)container.getComponentInstanceOfType(RequestHandlerImpl.class);
providersRegistry = (ProvidersRegistry)container.getComponentInstanceOfType(ProvidersRegistry.class);
DependencySupplier dependencySupplier =
(DependencySupplier)container.getComponentInstanceOfType(DependencySupplier.class);
// reset default providers to be sure it is clean.
ProviderBinder.setInstance(new ProviderBinder());
providers = ProviderBinder.getInstance();