private boolean validate() {
model.setDebugMessage("");
ScriptValidator validator = new ScriptValidator();
validator.setSourceDataElementContainer(model.getSourceDataElementContainer());
String expression = model.getExpressionToTest();
ScriptStatus status = validator.validate(expression);
if (status.isInvalid()) {
model.setDebugMessage(status.getMessage());
return false;
}
return true;
}