public void reload() throws ParseException {
parse(true);
}
private TemplateAST parse(boolean force) throws ParseException {
TemplateAST myAst = this.ast;
synchronized (this) {
if (force || myAst == null || this.resource.isModified()) {
myAst = new Parser().parse(this);
this.ast = myAst;
this.lastModified = System.currentTimeMillis();