modifier.modifyTemplate(document);
}
try {
if (document.getIncludes() != null) {
return new FileTemplateFactory(this, document.normalize(), file.getRealFile(), encoding, modifier, getFiles(document.getIncludes()), changeDetectionInterval);
}
return new FileTemplateFactory(this, document.normalize(), file.getRealFile(), encoding, modifier, null, changeDetectionInterval);
} catch (BehaviorInstantiationException e) {
throw new TemplateLoadingException(e);