components.putAll(config.getComponents());
validators.putAll(config.getValidators());
for (Iterator iterator = config.getApplications().iterator(); iterator.hasNext();)
{
Application application = (Application) iterator.next();
if (!application.getDefaultRenderkitId().isEmpty())
{
defaultRenderKitId = (String) application.getDefaultRenderkitId().get(application.getDefaultRenderkitId().size() - 1);
}
if (!application.getMessageBundle().isEmpty())
{
messageBundle = (String) application.getMessageBundle().get(application.getMessageBundle().size() - 1);
}
if (!application.getLocaleConfig().isEmpty())
{
localeConfig = (LocaleConfig) application.getLocaleConfig().get(application.getLocaleConfig().size() - 1);
}
actionListeners.addAll(application.getActionListener());
navigationHandlers.addAll(application.getNavigationHandler());
viewHandlers.addAll(application.getViewHandler());
stateManagers.addAll(application.getStateManager());
propertyResolver.addAll(application.getPropertyResolver());
variableResolver.addAll(application.getVariableResolver());
}
for (Iterator iterator = config.getConverters().iterator(); iterator.hasNext();)
{
Converter converter = (Converter) iterator.next();