protected PrintStream findStream(){
  PrintStream ps=(PrintStream)streams.get();
  if (ps == null) {
    ps=wrapped;
  }
  return ps;
}

protected PrintStream findStream ( ) { PrintStream ps = ( PrintStream ) streams . get ( ) ; if ( ps == null ) { ps = wrapped ; } return ps ; }
find printstream to which the output must be written to .
