public static void init ( ExternalContext context ) { WebXmlParser parser = new WebXmlParser ( context ) ; WebXml webXml = parser . parse ( ) ; context . getApplicationMap ( ) . put ( WEB_XML_ATTR , webXml ) ; MyfacesConfig mfconfig = MyfacesConfig . getCurrentInstance ( context ) ; long configRefreshPeriod = mfconfig . getConfigRefreshPeriod ( ) ; webXml . setParsingTime ( System . currentTimeMillis ( ) ) ; webXml . setDelegateFacesServlet ( mfconfig . getDelegateFacesServlet ( ) ) ; refreshPeriod = ( configRefreshPeriod * 1000 ) ; }
should be called when initialising Servlet