code: public static Properties readProperties(InputStream _stream) {
          Properties props = new Properties();
          if (_stream == null) {
              return null;
          }
  
          try {
              props.load(_stream);
              return props;
          } catch (IOException | NumberFormatException _ex) {
              LOGGER.warn("Could not properties: ", _ex);
          }
          return null;
      }
docs: Tries to read a properties file from an inputstream.
  @param _stream
  @return properties object/null