static void pauseThread(long duration){
  try {
    Thread.sleep(duration);
  }
 catch (  Exception e) {
    _log.warn("Exception while trying to sleep",e);
  }
}

static void pauseThread ( long duration ) { try { Thread . sleep ( duration ) ; } catch ( Exception e ) { _log . warn ( "Exception while trying to sleep" , e ) ; } }
simple puts the thread to sleep for the passed duration .
