private void write(final String str){
  try {
    if (writer == null) {
      writer=new OutputStreamWriter(System.out);
    }
    writer.write(str);
  }
 catch (  IOException ioe) {
    logger.error("Writer cannot write.",ioe);
    System.exit(1);
  }
}

private void write ( final String str ) { try { if ( writer == null ) { writer = new OutputStreamWriter ( System . out ) ; } writer . write ( str ) ; } catch ( IOException ioe ) { logger . error ( "Writer cannot write." , ioe ) ; System . exit ( 1 ) ; } }
writes a message to the console .
