code: public static Properties load(InputStream inputStream) {
          Properties configs = new Properties();
          try {
              configs.load(new UnicodeInputStream(inputStream).skipBOM());
          } catch (IOException e) {
              LOGGER.warn("Load properties from inputStream error!", e);
          }
          return configs;
      }
docs: Read properties file.
  
  @param inputStream properties file input stream. This method will not close the input stream.