*/
  public static void loadDirectory(String directory) {
    Logic.plLog(Logic.KWD_LOW, Cons.cons(StringWrapper.wrapString("Loading PowerLoom files from directory "), Cons.cons(StringWrapper.wrapString(directory), Cons.cons(StringWrapper.wrapString("..."), Stella.NIL))));
    Stella.bumpLogIndent();
    directory = Stella.fileNameAsDirectory(directory);
    { StringWrapper file = null;
      Cons iter000 = Stella.listDirectoryFiles(directory);

      for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
        file = ((StringWrapper)(iter000.value));
        { boolean foundP000 = false;

          { Stella_Object ext = null;
            Cons iter001 = Logic.$POWERLOOM_KB_FILE_EXTENSIONS$;

            loop001 : for (;!(iter001 == Stella.NIL); iter001 = iter001.rest) {
              ext = iter001.value;
              if (Stella.endsWithP(file.wrapperValue, ((StringWrapper)(ext)).wrapperValue, Stella.NULL_INTEGER)) {
                foundP000 = true;
                break loop001;
              }
            }
          }
          if (foundP000) {
            Logic.plLog(Logic.KWD_MEDIUM, Cons.cons(StringWrapper.wrapString("Loading file "), Cons.cons(file, Stella.NIL)));
            Logic.load(directory + file.wrapperValue, Stella.NIL);
          }
        }
      }
    }
    Stella.unbumpLogIndent();
    Logic.processDefinitions();
  }