public static String unsetThread(){
  ByteArrayOutputStream baos=(ByteArrayOutputStream)data.get();
  if (baos == null) {
    return null;
  }
  streams.set(null);
  data.set(null);
  return baos.toString();
}

public static String unsetThread ( ) { ByteArrayOutputStream baos = ( ByteArrayOutputStream ) data . get ( ) ; if ( baos == null ) { return null ; } streams . set ( null ) ; data . set ( null ) ; return baos . toString ( ) ; }
stop capturing thread ' s output and return captured data as a string .
