public static Cons javaTranslatePrintStream(Cons tree) {
    tree.firstSetter(Stella.SYM_STELLA_JAVA_PRINT_STREAM);
    if (Surrogate.subtypeOfKeywordP(Stella_Object.safePrimaryType(tree.rest.value))) {
      { GeneralizedSymbol testValue000 = ((GeneralizedSymbol)(tree.rest.value));

        if ((testValue000 == Stella.KWD_WARN) ||
            ((testValue000 == Stella.KWD_ERROR) ||
             (testValue000 == Stella.KWD_CONTINUABLE_ERROR))) {
          tree.secondSetter(Stella.SYM_STELLA_JAVA_STANDARD_ERROR);
        }
        else {
          { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

            stream000.nativeStream.print("`" + testValue000 + "' is not a valid case option");
            throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
          }
        }
      }
    }
    else {
      if (Stella_Object.javaStreamIsStandardOutputP(tree.rest.value)) {
        tree.secondSetter(Stella.SYM_STELLA_JAVA_STANDARD_OUT);
      }
      else {
        tree.secondSetter(Stella_Object.javaTranslateATree(tree.rest.value));
      }
    }
    Cons.javaTranslateListOfTrees(tree.rest.rest);
    return (tree);
  }