throw new TemplateParsingException("Invalid extend directive", currentToken.getLineNo(), currentToken.getColumn());
}
try {
template.addInclude(fileName);
return new ExtendsDirective(templateLoader, fileName, selector, expressionLanguage);
} catch (TemplateLoadingException e) {
throw new TemplateParsingException("Could not load the extended template", e, currentToken.getLineNo(), currentToken.getColumn());
} catch (BehaviorInstantiationException e) {
throw new TemplateParsingException("Could not load the extended template", e, currentToken.getLineNo(), currentToken.getColumn());
}