code: private static Writer writerFor( OutputStream stream)
      {
      try
        {
        return
          stream == null
          ? null
          : new OutputStreamWriter( stream, "UTF-8");
        }
      catch( Exception e)
        {
        throw new RuntimeException( "Can't create writer", e);
        }
      }
docs: Returns a Writer for the given output stream;