public static synchronized String generateSegmentName(){
  try {
    Thread.sleep(1000);
  }
 catch (  Throwable t) {
  }
  return sdf.format(new Date(System.currentTimeMillis()));
}

public static synchronized String generateSegmentName ( ) { try { Thread . sleep ( 1000 ) ; } catch ( Throwable t ) { } return sdf . format ( new Date ( System . currentTimeMillis ( ) ) ) ; }
generates a random name for the segments .
