if(StringUtil.startsWith(template,'/')) {
PageSource[] sources = ((PageContextImpl)pageContext).getPageSources(template);
PageSource ps = MappingImpl.isOK(sources);
if(ps==null)
throw new MissingIncludeException(sources[0],"could not find template ["+template+"], file ["+sources[0].getDisplayPath()+"] doesn't exist");
source=new InitFile(ps,template,template.endsWith('.'+pageContext.getConfig().getCFCExtension()));
}
else {
source=new InitFile(pageContext.getCurrentPageSource().getRealPage(template),template,StringUtil.endsWithIgnoreCase(template,'.'+pageContext.getConfig().getCFCExtension()));
if(!MappingImpl.isOK(source.getPageSource())){
throw new MissingIncludeException(source.getPageSource(),"could not find template ["+template+"], file ["+source.getPageSource().getDisplayPath()+"] doesn't exist");
}
}
//attributesScope.removeEL(TEMPLATE);
setAppendix(source.getPageSource());