public static String extractModuleNameFromFile(String filename) {
    { String modulename = null;

      { InputFileStream in = null;

        try {
          in = Stella.openInputFile(filename, Stella.NIL);
          modulename = GuiServer.extractModuleNameFromStream(in);

        } finally {
          if (in != null) {
            in.free();
          }
        }
      }
      return (modulename);
    }
  }