{
FacesConfig config = (FacesConfig) facesConfig;
configs.add(config);
for (Iterator iterator = config.getFactories().iterator(); iterator.hasNext();)
{
Factory factory = (Factory) iterator.next();
applicationFactories.addAll(factory.getApplicationFactory());
facesContextFactories.addAll(factory.getFacesContextFactory());
lifecycleFactories.addAll(factory.getLifecycleFactory());
renderKitFactories.addAll(factory.getRenderkitFactory());
}
components.putAll(config.getComponents());
validators.putAll(config.getValidators());
for (Iterator iterator = config.getApplications().iterator(); iterator.hasNext();)