final DominoDocument dominoDoc = (DominoDocument) ExtLibUtil.resolveVariable(ctx, "currentDocument");
Map<String, Object> dataMap = null;
if (dominoDoc instanceof Map) {
dataMap = (Map<String, Object>) dominoDoc;
} else {
dataMap = new DominoDocumentMapAdapter(dominoDoc);
}
try {
FormulaContextXsp fctx = (FormulaContextXsp) Formulas.createContext(dataMap, Formulas.getParser());
fctx.init(this.getComponent(), ctx);
return getASTNode().solve(fctx);