synchronized (parser) {
log.debug("Parsing script: " + cleanText);
try {
script = parser.parse(new StringReader(cleanText));
} catch (TokenMgrError tme) {
throw new ParseException(tme.getMessage());
}
}
if (script instanceof ASTJexlScript) {
return new ScriptImpl(cleanText, (ASTJexlScript) script);
} else {