public static void closeGlobal(){
  ArrayList<EnvLoaderListener> listeners;
  listeners=new ArrayList<>();
  listeners.addAll(_globalLoaderListeners);
  _globalLoaderListeners.clear();
  for (int i=0; i < listeners.size(); i++) {
    EnvLoaderListener listener=listeners.get(i);
    listener.classLoaderDestroy(null);
  }
}

public static void closeGlobal ( ) { ArrayList < EnvLoaderListener > listeners ; listeners = new ArrayList < > ( ) ; listeners . addAll ( _globalLoaderListeners ) ; _globalLoaderListeners . clear ( ) ; for ( int i = 0 ; i < listeners . size ( ) ; i ++ ) { EnvLoaderListener listener = listeners . get ( i ) ; listener . classLoaderDestroy ( null ) ; } }
destroys the current environment .
