*/
  public static String getTempDirectory() {
    { Stella_Object dir = Stella_Object.getProperty(StringWrapper.wrapString("stella.tempDirectory"), Stella.NIL);

      if (dir == null) {
        { Keyword testValue000 = Stella.operatingSystem();

          if ((testValue000 == Stella.KWD_UNIX) ||
              (testValue000 == Stella.KWD_MAC)) {
            dir = StringWrapper.wrapString("/tmp/");
          }
          else if (testValue000 == Stella.KWD_WINDOWS) {
            dir = StringWrapper.wrapString("C:\\WINDOWS\\TEMP\\");
          }
          else {
            { OutputStringStream stream000 = OutputStringStream.newOutputStringStream();

              stream000.nativeStream.print("`" + testValue000 + "' is not a valid case option");
              throw ((StellaException)(StellaException.newStellaException(stream000.theStringReader()).fillInStackTrace()));
            }
          }
        }
      }
      return (((StringWrapper)(dir)).wrapperValue);
    }
  }