final LValue val = (LValue) parser.parse(reportExp.getFormulaExpression());
if (val instanceof FormulaFunction)
{
final FormulaFunction reportFunction = (FormulaFunction) val;
final ContextLookup context = (ContextLookup) reportFunction.getChildValues()[0];
name = context.getName();
}
else if (val instanceof Term)
{
final Term term = (Term) val;
final ContextLookup context = (ContextLookup) term.getHeadValue().getChildValues()[0];
name = context.getName();
}
break;
}
}
}