*
* @return the application's Facelet page compiler
*/
protected Compiler createCompiler(FacesContext context)
{
Compiler compiler = new SAXCompiler();
compiler.setDevelopmentProjectStage(context.isProjectStage(ProjectStage.Development));
loadLibraries(context, compiler);
loadDecorators(context, compiler);
loadOptions(context, compiler);
compiler.setFaceletsProcessingConfigurations(
RuntimeConfig.getCurrentInstance(
context.getExternalContext()).getFaceletProcessingConfigurations());
return compiler;
}