boolean doVarStatus = (_varStatus != null);
if (!(doVar || doVarStatus))
return expression;
StringBuffer buf = new StringBuffer(expression.length());
// ACW: see bug 3754666:
Tokenizer tokens = new Tokenizer(expression);
String varDot = _var+".";
String varStatusDot = _varStatus+".";
while(tokens.hasNext())
{
Token tok = tokens.next();
String text = tok.getText();
if (tok.type == Tokenizer.VAR_TYPE)
{
if (doVar && (_var.equals(text) || text.startsWith(varDot)))
{