public static void stopPowerloomGui() {
    { String guiclass = "edu.isi.powerloom.gui.components.PowerloomApp";
      java.lang.reflect.Method exitfn = null;

      try {
        exitfn = Native.find_java_method(guiclass, "exit", new java.lang.Class[]{});
      } catch (java.lang.Exception e) {
        throw ((LogicException)(LogicException.newLogicException("PowerLoom GUI error: " + Stella.exceptionMessage(e)).fillInStackTrace()));
      }
      if (exitfn != null) {
        edu.isi.stella.javalib.Native.funcall(exitfn, null, new java.lang.Object [] {});
      }
    }
  }