public void addHandler(Handler handler) {
    if (exec.currentScope != null) {
      exec.currentScope.addHandler(handler);
    }
  }
Add a condition handler to the current scope
hplsql/src/main/java/org/apache/hive/hplsql/Exec.java