public void destroy(){
  services=null;
  if (matchesArrayThreadLocal != null) {
    matchesArrayThreadLocal.remove();
  }
  if (matchesPerStmtThreadLocal != null) {
    matchesPerStmtThreadLocal.remove();
  }
  if (scheduleArrayThreadLocal != null) {
    scheduleArrayThreadLocal.remove();
  }
  if (schedulePerStmtThreadLocal != null) {
    schedulePerStmtThreadLocal.remove();
  }
  matchesArrayThreadLocal=null;
  matchesPerStmtThreadLocal=null;
  scheduleArrayThreadLocal=null;
  schedulePerStmtThreadLocal=null;
}

public void destroy ( ) { services = null ; if ( matchesArrayThreadLocal != null ) { matchesArrayThreadLocal . remove ( ) ; } if ( matchesPerStmtThreadLocal != null ) { matchesPerStmtThreadLocal . remove ( ) ; } if ( scheduleArrayThreadLocal != null ) { scheduleArrayThreadLocal . remove ( ) ; } if ( schedulePerStmtThreadLocal != null ) { schedulePerStmtThreadLocal . remove ( ) ; } matchesArrayThreadLocal = null ; matchesPerStmtThreadLocal = null ; scheduleArrayThreadLocal = null ; schedulePerStmtThreadLocal = null ; }
destroy for destroying an engine instance : sets references to null and clears thread - locals
