// New node is going ot be used, invoke onInit() on it
// Invoke onInit() if it is defined by this Node's prototype
try {
// We need to reach deap into helma.framework.core to invoke onInit(),
// but the functionality is really worth it.
reval.invokeDirectFunction(node, "onInit", RequestEvaluator.EMPTY_ARGS);
} catch (Exception x) {
app.logError("Error invoking onInit()", x);
}
return node;
}