public void initHandler(){
  if (hooksReference == null) {
    return;
  }
  if (existingHooks != null) {
    List<Thread> list=removeNewHooks();
    if (list != null && !list.isEmpty()) {
      logger.warn("Previous hooks were not executed. Going to remove them");
    }
  }
  existingHooks=new IdentityHashMap<>();
  existingHooks.putAll(hooksReference);
}

public void initHandler ( ) { if ( hooksReference == null ) { return ; } if ( existingHooks != null ) { List < Thread > list = removeNewHooks ( ) ; if ( list != null && ! list . isEmpty ( ) ) { logger . warn ( "Previous hooks were not executed. Going to remove them" ) ; } } existingHooks = new IdentityHashMap < > ( ) ; existingHooks . putAll ( hooksReference ) ; }
important to check what hooks are currently registered
