public void waitForExit() throws IOException {
  Thread thread=Thread.currentThread();
  ClassLoader oldLoader=thread.getContextClassLoader();
  try {
    thread.setContextClassLoader(_systemManager.getClassLoader());
    _waitForExitService=new WaitForExitService3(this,_systemManager);
    _waitForExitService.waitForExit();
  }
  finally {
    thread.setContextClassLoader(oldLoader);
  }
}

public void waitForExit ( ) throws IOException { Thread thread = Thread . currentThread ( ) ; ClassLoader oldLoader = thread . getContextClassLoader ( ) ; try { thread . setContextClassLoader ( _systemManager . getClassLoader ( ) ) ; _waitForExitService = new WaitForExitService3 ( this , _systemManager ) ; _waitForExitService . waitForExit ( ) ; } finally { thread . setContextClassLoader ( oldLoader ) ; } }
thread to wait until baratine should be stopped .
