public void apply(FaceletContext ctx, final UIComponent parent, String templatePath) throws IOException {
AbstractFaceletContext faceletContextImpl = (AbstractFaceletContext) ctx;
VariableMapper originalVariableMapper = ctx.getVariableMapper();
if (this.paramHandlers != null) {
ctx.setVariableMapper(new VariableMapperWrapper(originalVariableMapper));
for (ParamHandler paramHandler : this.paramHandlers) {
paramHandler.apply(ctx, parent);
}
}
TemplateClient client = new TemplateClient() {