FacesConfig facesConfig = applicationConfig.getFacesConfig();
List<ConfiguredElement> configuredFactoryExtensions = facesConfig.getConfiguredFactoryExtensions();
if (configuredFactoryExtensions != null) {
FactoryExtensionFinder factoryExtensionFinder = FactoryExtensionFinder.getInstance();
for (ConfiguredElement configuredFactoryExtension : configuredFactoryExtensions) {
factoryExtensionFinder.registerFactory(configuredFactoryExtension);
}
}
}
catch (IOException e) {
throw new AbortProcessingException(e);