code: public static PrintWriter determineOutputWriter(List<OutputRedirection> redirectionList, Console console)
              throws FileNotFoundException, UnsupportedEncodingException {
          Writer[] redirectionWriters = getRedirectionWriters(redirectionList, console);
          PrintWriter outputWriter = null;
          if (redirectionWriters != null) {
              if (redirectionWriters.length == 1) {
                  outputWriter = new PrintWriter(redirectionWriters[0]);
              } else if (redirectionWriters.length > 1) {
                  outputWriter = new PrintWriter(new MultiWriter(redirectionWriters));
              }
          }
          return outputWriter;
      }
docs: Returns the {@code Writer} instances for translet output redirection.
  
  @param redirectionList a list of the output redirection
  @param console the Console instance
  @return the {@code Writer} instance
  @throws FileNotFoundException if the file has an invalid path
  @throws UnsupportedEncodingException if the named encoding is not supported