// here to allow recursion
Functions.functions.put(name, new FunctionData(this));
Functions.currentFunction = this;
try {
trigger = new Trigger(node.getConfig().getFile(), "function " + name, new SimpleEvent(), ScriptLoader.loadItems(node));
} finally {
Functions.currentFunction = null;
}
}