code: @SuppressWarnings("unchecked")
      public static void readModeConfig(Properties properties, Mode mode) {
  
          //读取相应模式的配置文件
          Enumeration<java.net.URL> confs = IOUtils.getResources("conf/" + mode.name().toLowerCase() + ".conf");
          while (confs.hasMoreElements()) {
              InputStream in = null;
              try {
                  URLConnection connection = confs.nextElement().openConnection();
                  if (mode.isDev()) {
                      connection.setUseCaches(false);
                  }
                  in = connection.getInputStream();
                  properties.load(in);
              } catch (IOException e) {
                  logger.warn(Messages.get("info.module.conf.error", "conf/" + mode.name().toLowerCase() + ".conf"), e);
              } finally {
                  closeQuietly(in);
              }
          }
      }
docs: <p>readModeConfig.</p>
  
  @param properties a {@link java.util.Properties} object.
  @param mode       a {@link ameba.core.Application.Mode} object.