this.globalScripts = new HashMap<String, List<ExpressionScriptProvided>>();
}
public synchronized String addExpressionOrScript(CreateExpressionDesc expressionDesc) throws ExprValidationException {
if (expressionDesc.getExpression() != null) {
ExpressionDeclItem expression = expressionDesc.getExpression();
String name = expression.getName();
if (globalExpressions.containsKey(name)) {
throw new ExprValidationException("Expression '" + name + "' has already been declared");
}
globalExpressions.put(name, expression);
return name;