Set<ConfigurationResource> faceletsLibraries = new HashSet<ConfigurationResource>();
faceletsLibraries.addAll(JSF_FACELET_CONFIG_RESOURCES.get(webModule.getEarContext().getGeneralData()));
faceletsLibraries.addAll(getContextFaceletsLibraries(webApp, webModule));
myFacesWebAppContextData.setAttribute("faceletConfigResources", faceletsLibraries);
ClassLoader deploymentClassLoader = new BundleClassLoader(bundle);
ClassLoader oldContextClassLoader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(deploymentClassLoader);
StandaloneExternalContext standaloneExternalContext = new StandaloneExternalContext(deploymentClassLoader);
FacesConfigurationProviderFactory.setFacesConfigurationProviderFactory(standaloneExternalContext, new GeronimoFacesConfigurationProviderFactory(standardFacesConfig, webAppFacesConfig,