try {
Thread.currentThread().setContextClassLoader(deploymentClassLoader);
StandaloneExternalContext standaloneExternalContext = new StandaloneExternalContext(deploymentClassLoader);
FacesConfigurationProviderFactory.setFacesConfigurationProviderFactory(standaloneExternalContext, new GeronimoFacesConfigurationProviderFactory(standardFacesConfig, webAppFacesConfig,
annotationsFacesConfig, classloaderFacesConfigs, contextSpecifiedFacesConfigs));
FacesConfigurationMerger facesConfigurationMerger = FacesConfigurationMergerFactory.getFacesConfigurationMergerFactory(standaloneExternalContext).getFacesConfigurationMerger(
standaloneExternalContext);
myFacesWebAppContextData.setAttribute("facesConfigData", new GeronimoFacesConfigData(facesConfigurationMerger.getFacesConfigData(standaloneExternalContext)));
} finally {
Thread.currentThread().setContextClassLoader(oldContextClassLoader);
}
List<FacesConfig> namingFacesConfigs = new ArrayList<FacesConfig>();