private void setAllModules() {
   File dir = new File(this.modulePath);
   File file[] = dir.listFiles();
   for (File file1 : file) {
     if (file1.isDirectory()) {
       String moduleName = file1.getName();
       String moduleOptionPath =
           modulePath + File.separator + moduleName + File.separator + moduleName + ".json";
       File optionFile = new File(moduleOptionPath);
       if (optionFile.exists()) {
         try {
           Jsonx json = Jsonx.create(new File(moduleOptionPath));
           JpageModule module = new JpageModule(json.get("name").toString());
           module.desc = json.get("desc").toString();
           module.img = json.get("img").toString();
           module.name = json.get("name").toString();
           module.title = json.get("title").toString();
           module.type = json.get("type").toString();
           module.version = json.get("version").toString();
           module.option = json.get("option").toString();
           module.single = json.hasKey("single") ? json.get("single").toBoolean() : false;
           module.editable = json.hasKey("editable") ? json.get("editable").toBoolean() : true;
           module.fixed = json.hasKey("fixed") ? json.get("fixed").toBoolean() : false;
           final HashMap<String, Object> map = new HashMap<String, Object>();
           json.get("option")
               .each(
                   new JsonEachArray() {
                     @Override
                     public boolean each(int index, Jsonx json) {
                       try {
                         map.put(json.get("name").toString(), json.get("value"));
                       } catch (Exception ex) {
                         ex.printStackTrace();
                       }
                       return false;
                     }
                   });
           module.optionMapping = map;
           this.defaultMap.put(moduleName, module);
         } catch (Exception ex) {
           ex.printStackTrace();
         }
       }
     }
   }
 }