*/
  public static void startPowerloomGui(Cons options) {
    { PropertyList theoptions = Logic.parseLogicCommandOptions(options, Cons.list$(Cons.cons(Logic.KWD_HOST, Cons.cons(Logic.SGT_STELLA_STRING, Cons.cons(Logic.KWD_PORT, Cons.cons(Logic.SGT_STELLA_INTEGER, Cons.cons(Logic.KWD_DEBUG_LEVEL, Cons.cons(Logic.SGT_STELLA_INTEGER, Cons.cons(Stella.NIL, Stella.NIL)))))))), true, false);
      String host = ((StringWrapper)(theoptions.lookupWithDefault(Logic.KWD_HOST, StringWrapper.wrapString("localhost")))).wrapperValue;
      int port = ((IntegerWrapper)(theoptions.lookupWithDefault(Logic.KWD_PORT, IntegerWrapper.wrapInteger(9090)))).wrapperValue;
      int debuglevel = ((IntegerWrapper)(theoptions.lookupWithDefault(Logic.KWD_DEBUG_LEVEL, IntegerWrapper.wrapInteger(1)))).wrapperValue;
      String guiclass = "edu.isi.powerloom.gui.components.PowerloomApp";
      java.lang.reflect.Method guifn = null;
      String[] guifnargs = new String[6];

      try {
        guifn = Native.find_java_method(guiclass, "main", new java.lang.Class[]{java.lang.Class.forName("[Ljava.lang.String;")});
        Logic.startPowerloomServer(Cons.cons(Logic.KWD_PORT, Cons.cons(IntegerWrapper.wrapInteger(port), Stella.NIL)));
        HookList.addHook(Stella.$STELLA_EXIT_HOOKS$, Logic.SYM_LOGIC_POWERLOOM_GUI_EXIT_HOOK);
        guifnargs[0] = "--debug";
        guifnargs[1] = Native.integerToString(((long)(debuglevel)));
        guifnargs[2] = "--host";
        guifnargs[3] = host;
        guifnargs[4] = "--port";
        guifnargs[5] = Native.integerToString(((long)(port)));
        edu.isi.stella.javalib.Native.funcall(guifn, null, new java.lang.Object [] {guifnargs});
      } catch (java.lang.Exception e) {
        throw ((LogicException)(LogicException.newLogicException("PowerLoom GUI error: " + Stella.exceptionMessage(e)).fillInStackTrace()));
      }
    }
  }