private boolean evalCondition(String condition) throws EvaluationException {
    if (condition != null && condition.length() > 0) {
      if (!"true".equals(eval("boolean(" + condition + ")").getValue().toString())) {
        return false;
      }
    }
    return true;
  }
private boolean evalCondition(String condition)