throw new RuntimeException(ex);
} catch (SAXException ex) {
throw new RuntimeException(ex);
}
BeanManager beanManager = (BeanManager) sc.getAttribute(BeanManagerServletContextListener.BEANMANAGER_SERVLETCONTEXT_KEY);
ViewConfigStore store = BeanManagerUtils.getContextualInstance(beanManager, ViewConfigStore.class);
List<UrlMapping> mappings = loadUrlMappings(store, webXmlParser.getFacesMapping());
PrettyConfig prettyConfig = new PrettyConfig();
prettyConfig.setMappings(mappings);
return prettyConfig;
}